From d1202b1f6627eb1d8955fc8157685871bafe0d24 Mon Sep 17 00:00:00 2001 From: xackus <14938807+xackus@users.noreply.github.com> Date: Sun, 29 Mar 2020 06:54:23 +0200 Subject: fix overflow in parseFloat --- lib/std/json/test.zig | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'lib/std/json') diff --git a/lib/std/json/test.zig b/lib/std/json/test.zig index 6873fa038a..5d46b75a48 100644 --- a/lib/std/json/test.zig +++ b/lib/std/json/test.zig @@ -1751,11 +1751,9 @@ test "i_number_double_huge_neg_exp" { } test "i_number_huge_exp" { - return error.SkipZigTest; - // FIXME Integer overflow in parseFloat - // any( - // \\[0.4e00669999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999969999999006] - // ); + any( + \\[0.4e00669999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999969999999006] + ); } test "i_number_neg_int_huge_exp" { -- cgit v1.2.3