From 560e9e53cdd2bffdc4ecfee2ebeb0cc9dc9910f4 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Thu, 4 Apr 2024 21:56:05 +0100 Subject: [PATCH] nostrdb: fix a few note size compile issues Signed-off-by: William Casarin --- nostrdb/src/nostrdb.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/nostrdb/src/nostrdb.c b/nostrdb/src/nostrdb.c index fed09708..deba2186 100644 --- a/nostrdb/src/nostrdb.c +++ b/nostrdb/src/nostrdb.c @@ -2611,7 +2611,7 @@ static int ndb_query_plan_execute_ids(struct ndb_txn *txn, struct ndb_query_result res; struct ndb_tsid tsid, *ptsid; uint64_t note_id, until, *pint; - uint64_t note_size; + size_t note_size; unsigned char *id; matched = 0; @@ -2716,7 +2716,8 @@ static int ndb_query_plan_execute_tags(struct ndb_txn *txn, MDB_dbi db; MDB_val k, v; int len, taglen, rc, i; - uint64_t *pint, until, note_id, note_size; + uint64_t *pint, until, note_id; + size_t note_size; unsigned char key_buffer[255]; struct ndb_note *note; struct ndb_filter_elements *tags; @@ -2799,7 +2800,8 @@ static int ndb_query_plan_execute_kinds(struct ndb_txn *txn, struct ndb_u64_tsid tsid, *ptsid; struct ndb_filter_elements *kinds; struct ndb_query_result res; - uint64_t kind, note_id, note_size, until, *pint; + uint64_t kind, note_id, until, *pint; + size_t note_size; int i, rc; // we should have kinds in a kinds filter!