Skip to content

Commit c0fbbf7

Browse files
committed
Merge branch 'master' of jsoftware.com:jsource
Avoid signed integer overflow
2 parents 7b22765 + 3be3f7c commit c0fbbf7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/g430.ijs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,11 @@ a =: i. 1000 1000
585585
2 _. _. _. 5 (= +. *.&(128!:5))"0 (3) (+/%#)\ 1 2 3 _. 4 5 6
586586
_. 16 14 12 _. (= +. *.&(128!:5))"0 (3) +/\. 1 2 3 _. 4 5 6
587587

588+
a =: 0 1 2 3 4 5 6 ,. 0 1 2 _. 4 5 6 ,. 0 1 2 __ 4 5 6 ,. 0 1 2 3 4 _ 6
589+
l =: ? 7
590+
(l 3 :'+/y'\ a) (= +. *.&(128!:5))"0 l +/\ a
591+
(l 3 :'(+/y)%#y'\ a) (= +. *.&(128!:5))"0 l (+/%#)\ a
592+
(l 3 :'+/y'\. a) (= +. *.&(128!:5))"0 l +/\. a
588593

589594
randfini''
590595

0 commit comments

Comments
 (0)