From b5a8760b29531e64e899abd52cb92ac8e6c21426 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sat, 17 Jun 2017 17:51:54 +1000 Subject: src/lstrlib.js: cast to unsigned when packing unsigned --- tests/test-suite/inprogress/tpack.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/test-suite') diff --git a/tests/test-suite/inprogress/tpack.js b/tests/test-suite/inprogress/tpack.js index b5ae5a9..e624cce 100644 --- a/tests/test-suite/inprogress/tpack.js +++ b/tests/test-suite/inprogress/tpack.js @@ -364,9 +364,8 @@ test("[test-suite] tpack: overflow in packing", function (t) { local umax = (1 << (i * 8)) - 1 local max = umax >> 1 local min = ~max - -- TODO: unsigned overflow - -- checkerror("overflow", pack, "I" .. i, umax + 1) checkerror("overflow", pack, ">i" .. i, umax) -- cgit v1.2.3-54-g00ecf