On February 12, 2016 5:15:59 PM GMT+01:00, Teodor Sigaev <teo...@sigaev.ru> 
>One more option for patch:
>#define GinPageIsLeaf(page)    ((bool)(GinPageGetOpaque(page)->flags &
>Seems it will work on any platform with built-in bool. But I don't know
>will it 
>work with 'typedef char bool' if high bit will be set.

Unless I am missing something major, that doesn't seem to achieve all that 
much. A cast to a char based bool wouldn't normalize this to 0 or 1. So you're 
still not guaranteed to be able to do somebool == anotherbool when either are 
set based on such a macro.


Please excuse brevity and formatting - I am writing this on my mobile phone.

Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:

Reply via email to