[fpc-pascal] LongBool True = -1

Anthony Walter sysrpl at gmail.com
Thu May 17 23:26:05 CEST 2018

I am working with some a glib library that expects gboolean to be positive
1 for true, yet FPC emits -1 for true. Is there a compiler flag to force
boolean types to emit 1 instead of -1? If so, would there possibly be any
side effects with other pascal code?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20180517/60a264e0/attachment.html>

More information about the fpc-pascal mailing list