From fbeb2c5f0e13c7e6aaee36720bb6a314e78b8979 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 17 Aug 2025 23:24:24 +0200 Subject: [PATCH] silence warning better --- config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.cpp b/config.cpp index a830f290..cc81c838 100644 --- a/config.cpp +++ b/config.cpp @@ -3623,7 +3623,7 @@ EX void save_customchar(charstyle& cs, const string& fname) { EX void load_customchar(charstyle& cs, const string& fname) { FILE *f = fopen(fname.c_str(), "rt"); if(!f) throw hstream_exception(); - int vernum; + unsigned int vernum; if(!fscanf(f, "%x", &vernum)) throw hstream_exception(); int lh; if(!fscanf(f, "%d %d\n%08x %08x %08x %08x %08x %08x %08x %08x %08x\n",