From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 68A2F6F873; Thu, 27 Jan 2022 12:52:14 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 68A2F6F873 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1643277134; bh=Ale64SGRQA0uTf5T8ZjakmdTrM+zbphBjW2YQRiDAag=; h=Date:To:Cc:References:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=BO6o/Nr2Uu7pptRxuM8HM3P/FGEB7A+/Jp5GIUDQVKQ7rt4kJxUPCujXIJKVziPLn /5DY2A0ys9MP+uC6ITDbkK2jhGJJ7aOER48kgrReJR9SEoys8d5hpP/r8uZyjhmDt8 3Bjtd2a83CAesZOwSiq/jDlDBkoO60F0NmMBaeMo= Received: from smtp49.i.mail.ru (smtp49.i.mail.ru [94.100.177.109]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 117B26F873 for ; Thu, 27 Jan 2022 12:52:13 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 117B26F873 Received: by smtp49.i.mail.ru with esmtpa (envelope-from ) id 1nD1Rs-0002k1-8i; Thu, 27 Jan 2022 12:52:12 +0300 Date: Thu, 27 Jan 2022 12:50:12 +0300 To: Sergey Ostanevich , Igor Munkin Cc: tarantool-patches@dev.tarantool.org Message-ID: References: <6ab9d085d486a481362259063598825a14f6876b.1643199076.git.skaplun@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6ab9d085d486a481362259063598825a14f6876b.1643199076.git.skaplun@tarantool.org> X-4EC0790: 10 X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD9AA78FDF62ECAE61FBB84E692E37A2F285E8DB7FCD49F92A3182A05F5380850404D9F9ACB41F7E1F877BCDF7802F4574FEA4413034C6426041A225A5103AAED25 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7A0175C48BD57B26BC2099A533E45F2D0395957E7521B51C2CFCAF695D4D8E9FCEA1F7E6F0F101C6778DA827A17800CE77603ADE015AF816DEA1F7E6F0F101C6723150C8DA25C47586E58E00D9D99D84E1BDDB23E98D2D38BEBC5CAB6D411FFA6403D4FABBB23E0025A556701BE1B50C8CC7F00164DA146DAFE8445B8C89999728AA50765F7900637BA939FD1B3BAB99B389733CBF5DBD5E9C8A9BA7A39EFB766F5D81C698A659EA7CC7F00164DA146DA9985D098DBDEAEC80CABCCA60F52D7EBF6B57BC7E6449061A352F6E88A58FB86F5D81C698A659EA7E827F84554CEF5019E625A9149C048EE9ECD01F8117BC8BEE2021AF6380DFAD18AA50765F790063735872C767BF85DA227C277FBC8AE2E8B2303E78B907142AC75ECD9A6C639B01B4E70A05D1297E1BBCB5012B2E24CD356 X-C1DE0DAB: 0D63561A33F958A5A03AC05D23636FE518BA3D354DED0710B15138517FA22759D59269BC5F550898D99A6476B3ADF6B47008B74DF8BB9EF7333BD3B22AA88B938A852937E12ACA75438CC92D4039F4E2410CA545F18667F91A7EA1CDA0B5A7A0 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D3483E1FCD56FEA62E6F0FB0021F838AD9E1B6AA90A1EF3C3BC1451F4F89B34FB920BFD26842FBA54E31D7E09C32AA3244C8D24046C56DE2D77FCCEF1566041484239C99C45E8D137E9FACE5A9C96DEB163 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojUxqqD3NEEG2xVoddS0sfwg== X-Mailru-Sender: 3B9A0136629DC91206CBC582EFEF4CB4C0C998FF718D0CD311111F196AAB36A8EABC5CCBA5110642F2400F607609286E924004A7DEC283833C7120B22964430C52B393F8C72A41A84198E0F3ECE9B5443453F38A29522196 X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH luajit 2/2] Fix tonumber("-0") in dual-number mode. X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Sergey Kaplun via Tarantool-patches Reply-To: Sergey Kaplun Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Hi, again! On 26.01.22, Sergey Kaplun wrote: > From: Mike Pall > > Reported by Sergey Kaplun. > Added the corresponding line to the commit: | (cherry picked from commit 103c29e634d822e0affd7d3ae16a7d8a80c038d3) Branch is force pushed. > For DUALNUM build `tonumber("-0x0")` or `tonumber("-0")` returns 0 > instead -0 due to the STRSCAN_OPT_TOINT option of `lj_strscan_scan()` > and cast value to integer with losing information about its sign. > > This patch adds special checks for these corner cases during strscan. > > Sergey Kaplun: > * added the description and the test for the problem > > Part of tarantool/tarantool#6548 > --- > -- Best regards, Sergey Kaplun