* Fix integer overflow in test of mul reduction
This commit is contained in:
1 parent
923b340a80
commit
cb49cd7100
1 file changed
+5
-1
+5
-1
@@ -502,8 +502,12 @@ static void test_extract(void)
|
||||
assert (dst == 0);
|
||||
ALGO_REDUCE(dst, a, ARRAY_OPLIST(array_int), or);
|
||||
assert (dst == 127);
|
||||
|
||||
array_int_clean(a);
|
||||
for(int i = 1; i < 10; i++)
|
||||
array_int_push_back(a, i);
|
||||
ALGO_REDUCE(dst, a, ARRAY_OPLIST(array_int), product);
|
||||
assert (dst == 0);
|
||||
assert (dst == 362880);
|
||||
|
||||
array_int_clear(a);
|
||||
list_int_clear(l);
|
||||
|
||||
Reference in new issue
Block a user