diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-10-15 01:18:55 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-10-15 01:18:55 -0700 |
commit | 1ee02a2273a10cc30d5dd5e07be1e5ee6a392e55 (patch) | |
tree | 941ff410b01a2e0d21feda449e3955e10c2e793f /subx | |
parent | 125bea475fab2220e3e462986cfc8313fa937f7f (diff) | |
download | mu-1ee02a2273a10cc30d5dd5e07be1e5ee6a392e55.tar.gz |
4068
Diffstat (limited to 'subx')
-rw-r--r-- | subx/010core.cc | 6 |
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; } } |