Skip to content
Commit 0486497e authored by Michal Simek's avatar Michal Simek
Browse files

lib: Improve _parse_integer_fixup_radix base 16 detection



Base autodetection is failing for this case:
if test 257 -gt 3ae; then echo first; else echo second; fi

It is because base for 3ae is recognized by _parse_integer_fixup_radix() as
10. The code detects the first char which is not between 'a'/'A' or 'f'/'F'
to change base from dec to hex.

Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
Signed-off-by: default avatarShiril Tichkule <shirilt@xlinx.com>
parent 352f86bf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment