]> Repositorios git - scryer-prolog.git/commit
Fix `X is gcd(1, 2 ^ 64)` triggering a panic
authorEmilie Burgun <[email protected]>
Mon, 20 Jan 2025 10:10:16 +0000 (11:10 +0100)
committerEmilie Burgun <[email protected]>
Sun, 26 Jan 2025 23:06:06 +0000 (00:06 +0100)
commite2d1a2b6bc9943aec76fcc085beec0600c33313e
tree9d7f5e5ff5429e5038366693d82a311fdc8d9cfc
parentd3361c16d81567db2426043a4c52ed30495af040
Fix `X is gcd(1, 2 ^ 64)` triggering a panic

The implementation for gcd/2 would cast the second argument to an isize.
src/machine/arithmetic_ops.rs