Correct the max/min signed/unsigned 32-bit int

The test was trying to pack an unsigned int which couldn't fit as a
signed int and putInt() wasn't doing the validation in the correct range
This commit is contained in:
Armen Baghumian
2015-12-04 03:05:42 +00:00
parent fe2f8d32aa
commit 77fbdd28e2
2 changed files with 6 additions and 3 deletions

View File

@@ -192,7 +192,7 @@ function fuzzTest1(Assert $assert)
$uchar_val = 0xFF;
$short_val = -32222; // 0x8222;
$ushort_val = 0xFEEE;
$int_val = 0x83333333 | 0;
$int_val = 0x7fffffff | 0;
// for now
$uint_val = 1;
$long_val = 2;