Browse Source

whoops, bad hex decoder

master
Michael Hamburg 7 years ago
parent
commit
733e67e80d
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      test/ristretto.cxx

+ 3
- 3
test/ristretto.cxx View File

@@ -14,9 +14,9 @@
using namespace decaf;

inline int hexi(char c) {
if (c >= '0' && c < '9') return c-'0';
if (c >= 'a' && c < 'f') return c-'a'+0xa;
if (c >= 'A' && c < 'F') return c-'A'+0xa;
if (c >= '0' && c <= '9') return c-'0';
if (c >= 'a' && c <= 'f') return c-'a'+0xa;
if (c >= 'A' && c <= 'F') return c-'A'+0xa;
return -1;
}



Loading…
Cancel
Save