Do not require prefix for hex

This commit is contained in:
Jeremy Soller
2018-10-16 18:03:21 -06:00
parent 460f57b37f
commit 3c2121d4e0
3 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -756,7 +756,7 @@ pub unsafe fn convert_hex(s: *const c_char) -> Option<(c_ulong, isize, bool)> {
{
convert_integer(s.offset(2), 16).map(|(val, idx, overflow)| (val, idx + 2, overflow))
} else {
None
convert_integer(s, 16).map(|(val, idx, overflow)| (val, idx, overflow))
}
}