db: Fixing some clang warnings

Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
Christian Decker 2018-04-04 15:37:14 +02:00 committed by Rusty Russell
parent 36c335fb09
commit ffbe56847e

View File

@ -746,7 +746,7 @@ struct pubkey *sqlite3_column_pubkey_array(const tal_t *ctx,
return NULL;
n = sqlite3_column_bytes(stmt, col) / PUBKEY_DER_LEN;
assert(n * PUBKEY_DER_LEN == sqlite3_column_bytes(stmt, col));
assert(n * PUBKEY_DER_LEN == (size_t)sqlite3_column_bytes(stmt, col));
ret = tal_arr(ctx, struct pubkey, n);
ders = sqlite3_column_blob(stmt, col);