Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 412 Bytes

neo-go-3598.md

File metadata and controls

29 lines (18 loc) · 412 Bytes

MODMUL operation returns wrong results for negative numbers

Minimal case

AGQA/wClpQ==

What is wrong

For negative numbers MODMUL operation returns wrong results.

100 * -1 % -91 == 82

image

Expected behavior

C# (neo) results:

100 * -1 % -91 == -9

Extra info

Relevant for Commit (neo-go): c960a7eb4799ffa1cf8a5428a91d9fb2c86ac69e