From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 85D9B273D5 for ; Tue, 17 Jul 2018 07:27:44 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Zy5CKWKAjIvx for ; Tue, 17 Jul 2018 07:27:44 -0400 (EDT) Received: from smtp57.i.mail.ru (smtp57.i.mail.ru [217.69.128.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 45233273EF for ; Tue, 17 Jul 2018 07:27:44 -0400 (EDT) Date: Tue, 17 Jul 2018 14:27:46 +0300 From: Alexander Turenko Subject: [tarantool-patches] Re: [PATCH v1 1/1] lua: fix strange behaviour of tonumber64 Message-ID: <20180717112746.mh2cqq22acw4mtsu@tkn_work_nb> References: <6b638fd3-58bc-2ed7-c32c-3f0a440d1f2b@tarantool.org> <20180716124949.3uhj5zrkivphdnaw@tkn_work_nb> <20180716134210.zp3tckp3gcgchm4q@tkn_work_nb> <56a17552-ddcf-08cd-3ce1-78018f9dc748@tarantool.org> <20180716140907.62lazzvz4vx2e7fz@tkn_work_nb> <58f21346-5ae1-97fe-2231-0d86f3c9717f@tarantool.org> <8b7eb4a3-3aec-a63c-034e-fd0ace55d0d9@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <8b7eb4a3-3aec-a63c-034e-fd0ace55d0d9@tarantool.org> Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-subscribe: List-owner: List-post: List-archive: To: Kirill Shcherbatov Cc: Vladislav Shpilevoy , tarantool-patches@freelists.org > > +-- 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.