Parsing of integer values is done with strconv.ParseInt(), which currently fails when a value like 0x1234 is specified. This is because the method ignores the prefix when base is explicitly specified (reference).
This PR adjusts the parsing code to skip the first 2 characters of the value, if it starts with 0x.
Parsing of integer values is done with
strconv.ParseInt()
, which currently fails when a value like0x1234
is specified. This is because the method ignores the prefix whenbase
is explicitly specified (reference).This PR adjusts the parsing code to skip the first 2 characters of the value, if it starts with
0x
.