From 586abd208221761a6c93bc4568513e9cd4dc287d Mon Sep 17 00:00:00 2001 From: kanreki <32443233+kanreki@users.noreply.github.com> Date: Tue, 14 Sep 2021 12:15:53 -0700 Subject: 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. --- src/query.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/query.h') 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; -- cgit v1.2.3