[fpc-pascal] LongBool True = -1

Dmitry Boyarintsev skalogryz.lists at gmail.com
Sun May 20 04:38:06 CEST 2018


On Thu, May 17, 2018 at 5:26 PM, Anthony Walter <sysrpl at gmail.com> wrote:

> I am working with some a glib library that expects gboolean to be positive
> 1 for true, yet FPC emits -1 for true.
>

I'd think that pascal defines true as
  true = not false;
In case of unsigned integers "-1" is not an option

thanks,
Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20180519/406322ae/attachment.html>


More information about the fpc-pascal mailing list