From 10d2f932ce3470b85d0ebad32ad36f941ca83f13 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 3 Aug 2020 19:49:54 +0200 Subject: [PATCH] fixed some warning/errors --- hprint.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hprint.cpp b/hprint.cpp index 194aa67d..53bd715e 100644 --- a/hprint.cpp +++ b/hprint.cpp @@ -139,8 +139,8 @@ struct shstream : hstream { string s; int pos; shstream(const string& t = "") : s(t) { pos = 0; vernum = VERNUM_HEX; } - virtual void write_char(char c) { s += c; } - virtual char read_char() { if(pos == isize(s)) throw hstream_exception(); return s[pos++]; } + virtual void write_char(char c) override { s += c; } + virtual char read_char() override { if(pos == isize(s)) throw hstream_exception(); return s[pos++]; } }; inline void print(hstream& hs) {} @@ -421,7 +421,7 @@ EX string from_hexstring(string o) { buf[0] = o[i]; buf[1] = o[i+1]; buf[2] = 0; - int x; + unsigned x; sscanf(buf, "%02X", &x); res += char(x); }