summaryrefslogtreecommitdiff
path: root/src/query.h
diff options
context:
space:
mode:
authorkanreki <32443233+kanreki@users.noreply.github.com>2021-09-14 12:15:53 -0700
committerJohn Wiegley <johnw@newartisans.com>2021-12-08 16:17:17 -0800
commit586abd208221761a6c93bc4568513e9cd4dc287d (patch)
treed3d6c8da7e4584665bb705c25a91c5c66083de65 /src/query.h
parented5886921bcce0d1a261a37aa83bf135259b7d21 (diff)
downloadfork-ledger-586abd208221761a6c93bc4568513e9cd4dc287d.tar.gz
fork-ledger-586abd208221761a6c93bc4568513e9cd4dc287d.tar.bz2
fork-ledger-586abd208221761a6c93bc4568513e9cd4dc287d.zip
Use correct int return type for stream input operations
This makes it safe to compare results to -1 to indicate EOF, regardless of whether char is considered signed or unsigned; and so eliminates compiler warnings on platforms such as ARM. Fixes bug #2058.
Diffstat (limited to 'src/query.h')
-rw-r--r--src/query.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/query.h b/src/query.h
index f7d48d32..3297cbd6 100644
--- a/src/query.h
+++ b/src/query.h
@@ -191,8 +191,7 @@ public:
#endif
}
- void unexpected();
- void expected(char wanted, char c = '\0');
+ void expected(char wanted);
};
token_t token_cache;