Andreas van Cranenburgh, 20.04.2013 16:32:
> I seem to have discovered a bug where the declared type of a macro is not
> honored.
> Code to reproduce: https://gist.github.com/andreasvc/5426158
Thanks for the report and the analysis.
I'm sure it's a problem with boolean coercion. Coercion of integer types to
bint (which Cython does in this case) should coerce the value to 0/1,
instead of just silently downcasting and truncating the value.
While it might be possible to do it only for large integer types,
consistency concerns would suggest to always do it.