[tarantool-patches] Re: [PATCH v1 1/1] lua: fix strange behaviour of tonumber64

Alexander Turenko alexander.turenko at tarantool.org
Tue Jul 17 14:27:46 MSK 2018


> > +-- gh-3466: Strange behaviour of tonumber64 function
> > +--
> > +tostring(tonumber64('18446744073709551615')) == '18446744073709551615ULL'
> > +tonumber64('18446744073709551616') == nil
> > +tostring(tonumber64('-9223372036854775808')) == '-9223372036854775808LL'
> 
> 2. Where is a test for another corner case? I mean INT64_MAX.
> 

I also propose to test zero.

WBR, Alexander Turenko.




More information about the Tarantool-patches mailing list