diff options
author | Michal Simek <michal.simek@xilinx.com> | 2020-02-07 13:04:10 +0100 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2020-04-06 12:52:45 +0200 |
commit | 0486497e2b5f4d36fa968a1a60fea358cbf70b65 (patch) | |
tree | 09a7a0abdb8b1075f107e89419d39b1d1d9fa2b7 /board/xilinx | |
parent | 352f86bf8658ec32d9e64f2d1b9134be6f8555e5 (diff) | |
download | u-boot-0486497e2b5f4d36fa968a1a60fea358cbf70b65.tar.gz u-boot-0486497e2b5f4d36fa968a1a60fea358cbf70b65.tar.bz2 u-boot-0486497e2b5f4d36fa968a1a60fea358cbf70b65.zip |
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: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Shiril Tichkule <shirilt@xlinx.com>
Diffstat (limited to 'board/xilinx')
0 files changed, 0 insertions, 0 deletions