[tarantool-patches] [PATCH] lua: fix tonumber64() for strings containing "ULL"
Vladimir Davydov
vdavydov.dev at gmail.com
Wed Nov 28 19:18:12 MSK 2018
On Tue, Nov 20, 2018 at 04:39:58PM +0300, Serge Petrenko wrote:
> tonumber64() doesn't understand strings with "ULL" like "123ULL". The
> expected output for tonumber64("123ULL") is 123, since 123ULL is a
> correct number notation in lua. However, our function returns null.
> This happens because suffix isn't trimmed in tonumber64.
>
> Trim ULL/LLU, LL suffixes, but only when no base is specified or
> base is equal to either 2, 10 or 16.
Pushed to 2.1
More information about the Tarantool-patches
mailing list