This commit is contained in:
blackjok3r
2018-10-25 13:18:23 +08:00
parent 07f2fa7b1f
commit d32cdefe7b

View File

@@ -278,6 +278,7 @@ void hex2ascii(const string& in, string& out)
p++;
if (p == in.end()) break; // incomplete last digit - should report error
c = (c << 4) + hexval(*p); // + takes precedence over <<
printf("char: %d\n",c);
out.push_back(c);
}
}