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 D86FC6F87B; Wed, 26 Jan 2022 15:21:36 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org D86FC6F87B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1643199697; bh=B5Ot/02JFSXk+6n2c6aKHAs2+OhshyN9Vrd2evByQ98=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=pDCjZdLr1IgMe9uEU1tGi1sdrooVcvm92r+xzi+863dPJevLy2m8A3ejrNKcnNDzP GmuY7UUx1ybcF4PDCbXe1XkpBxTyp2cocLs8hKIM/gN+aUAO6DelMACdq/qplfAmoB tYOWzM3lFaD26JrtQcW8zuLfMIZRMC3sfSHTr+B0= Received: from smtp52.i.mail.ru (smtp52.i.mail.ru [94.100.177.112]) (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 E33876F879 for ; Wed, 26 Jan 2022 15:21:34 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org E33876F879 Received: by smtp52.i.mail.ru with esmtpa (envelope-from ) id 1nChIr-00089M-Vj; Wed, 26 Jan 2022 15:21:34 +0300 To: Sergey Ostanevich , Igor Munkin Date: Wed, 26 Jan 2022 15:19:32 +0300 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD9AA78FDF62ECAE61F291BE8FFA68662AA8F0E5FECAE10260C182A05F5380850400E1A002425EF3A5FDC7106C5AF75E1A41A4E76CE9E48EEADD3AD58A434DBDECE X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE771540F9ECFC94C4BEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637F97367C191A19EB28638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D8B01239CEB6CCA96C2C1919B4EF019100117882F4460429724CE54428C33FAD305F5C1EE8F4F765FC3A703B70628EAD7BA471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F446042972877693876707352033AC447995A7AD1828451B159A507268D2E47CDBA5A96583BA9C0B312567BB231DD303D21008E29813377AFFFEAFD269A417C69337E82CC2E827F84554CEF50127C277FBC8AE2E8BA83251EDC214901ED5E8D9A59859A8B6B1CFA6D474D4A6A4089D37D7C0E48F6C5571747095F342E88FB05168BE4CE3AF X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975CF2FB19FA2283D72214EE1A9400BF57772FFD2F6D2AB322E59C2B6934AE262D3EE7EAB7254005DCED5177E3BD826A77771E0A4E2319210D9B64D260DF9561598F01A9E91200F654B06CE7B4E551862B828E8E86DC7131B365E7726E8460B7C23C X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34E69981C39E7B068AB81D9DD42C7384CD558B55BFD923EF7FC3FE8E715DAE7902A72A9E1722AF35191D7E09C32AA3244C41E19F02F6EBEEC1076EC864AE2C48C31E098CBE561D6343927AC6DF5659F194 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojbL9S8ysBdXg2bf4xMB29WnV4Onhq5EuA X-Mailru-Sender: 3B9A0136629DC91206CBC582EFEF4CB4A18AA4B88E7D2174925B946E17A7E3F0C1B2F903A207F322F2400F607609286E924004A7DEC283833C7120B22964430C52B393F8C72A41A84198E0F3ECE9B5443453F38A29522196 X-Mras: Ok Subject: [Tarantool-patches] [PATCH luajit 0/2] Fix tonumber("-0") inconsistencies 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 Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" This patchset fixes incorrect behaviour for `tonumber("-0")` different from Lua 5.1. The first patch fixes it for non-dualnum mode (default on x86 and x64). The second fixes it for dual-number mode too. So, there is the corresponding skipcond in the test for the first patch that is removed in the next patch. Related issues/PR: * https://github.com/LuaJIT/LuaJIT/issues/528 * https://github.com/LuaJIT/LuaJIT/pull/787 * https://github.com/tarantool/tarantool/issues/6548 Branch: https://github.com/tarantool/tarantool/tree/skaplun/lj-528-tonumber-0-full-ci Tarantool branch: https://github.com/tarantool/luajit/tree/skaplun/lj-528-tonumber-0-full-ci Mike Pall (2): Fix tonumber("-0"). Fix tonumber("-0") in dual-number mode. src/lj_strscan.c | 13 ++++++++----- test/tarantool-tests/lj-528-tonumber-0.test.lua | 13 +++++++++++++ 2 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 test/tarantool-tests/lj-528-tonumber-0.test.lua -- 2.34.1