exercism / x86-64-assembly

Exercism exercises in x86-64 Assembly.
https://exercism.org/tracks/x86-64-assembly
MIT License
22 stars 18 forks source link

Use int instead of bool for return types #70

Closed bergjohan closed 5 years ago

bergjohan commented 5 years ago

The compiler is depending on bool being one byte in size and holding the value 1 or 0. Using bool makes an empty solution pass all the tests, because rax will hold garbage on function entry.

Ref: https://github.com/exercism/x86-64-assembly/issues/69