about summary refs log tree commit diff stats
path: root/subx
diff options
context:
space:
mode:
Diffstat (limited to 'subx')
-rw-r--r--subx/010core.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/subx/010core.cc b/subx/010core.cc
index 0713ec1d..42445afd 100644
--- a/subx/010core.cc
+++ b/subx/010core.cc
@@ -186,11 +186,11 @@ char next_hex_byte(istream& in) {
       }
     }
     if (c >= '0' && c <= '9') return c;
-    else if (c >= 'a' && c <= 'f') return c;
-    else if (c >= 'A' && c <= 'F') return tolower(c);
+    if (c >= 'a' && c <= 'f') return c;
+    if (c >= 'A' && c <= 'F') return tolower(c);
     // disallow any non-hex characters, including a '0x' prefix
     if (!isspace(c)) {
-      raise << "invalid non-hex character '" << c << "'\n" << end();
+      raise << "invalid non-hex character " << NUM(c) << "\n" << end();
       break;
     }
   }