Re: [OpenWrt-Devel] [PATCH] lua: lnum: fix strtoul based number parsing

2019-05-21 Thread Karl Palsson
Petr Štetiar wrote: > From: Liangbin Lian > > Lua's LNUM patch currently doesn't parse properly certain > numbers as it's visible from the following simple tests. > Tested-by: Karl Palsson This makes some busted unit tests of ours pass for the first time on the openwrt target itself :) It

[OpenWrt-Devel] [PATCH] lua: lnum: fix strtoul based number parsing

2019-05-16 Thread Petr Štetiar
From: Liangbin Lian Lua's LNUM patch currently doesn't parse properly certain numbers as it's visible from the following simple tests. On x86_64 host (stock Lua 5.1.5, expected output): $ /usr/bin/lua -e 'print(0x8000); print(0x800); print(0x1)' 2147483648 879609302220