]> Repositorios git - scryer-prolog.git/commit
Fix xor/2 type error reporting wrong argument
authorManos Pitsidianakis <[email protected]>
Mon, 24 Oct 2022 16:26:43 +0000 (19:26 +0300)
committerManos Pitsidianakis <[email protected]>
Mon, 24 Oct 2022 16:26:43 +0000 (19:26 +0300)
commita9a06b5297e75f2d0eefbee653c5788cb7932062
tree27037119307e5f1561ed64fc9706571ae879da70
parent6b8e6204957bfc3136ea39ec659d30627775260d
Fix xor/2 type error reporting wrong argument

If first argument n1 in xor/2 is of wrong numerical type, the match
patterns fall through to a catch all case that reports the second
argument in the type error.

Fixes #1626

`xor/2 function reports the wrong argument in type error #1626`

https://github.com/mthom/scryer-prolog/issues/1626
src/machine/arithmetic_ops.rs