Commit e9424f29 authored by Jaromil's avatar Jaromil
Browse files

fix hex import with 0x

parent 7b3a9df2
......@@ -554,6 +554,9 @@ static int from_hex(lua_State *L) {
s[1]='0'; // overwrite a single byte in const
o->len = hex2buf(o->val, s+1);
return 1;
} else {
o->len = hex2buf(o->val, s+2);
return 1;
}
}
o->len = hex2buf(o->val,s);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment