damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 560e9e53cdd2bffdc4ecfee2ebeb0cc9dc9910f4
parent 1c1e5fa2a070650cfde5338b592d5697be37022a
Author: William Casarin <jb55@jb55.com>
Date:   Thu,  4 Apr 2024 21:56:05 +0100

nostrdb: fix a few note size compile issues

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mnostrdb/src/nostrdb.c | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git 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!