Re: Question about ECPGset_noind_null() and ECPGis_noind_null()

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: Question about ECPGset_noind_null() and ECPGis_noind_null()
Дата
Msg-id 4B05A0AA.7050503@dunslane.net
обсуждение исходный текст
Ответ на Re: Question about ECPGset_noind_null() and ECPGis_noind_null()  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers

Tom Lane wrote:
> Boszormenyi Zoltan <zb@cybertec.at> writes:
>   
>>         for (; length > 0 && ptr[--length] == 0xff;);
>>     
>
>   
>> I suspect that GCC does the "--length" after checking
>> "length > 0" and before checking the "ptr[...] == 0xff",
>> but HP CC does it before checking "length > 0".
>>     
>
> If it does, that is *unquestionably* a bug in HP's CC and should be
> reported to them.  
>   

Wow, I recall fighting HP over a bad compiler bug (although not as bad 
as this would be) 15 years ago. Their official response amounted to "we 
don't care and we're not going to fix it". Maybe not much has changed.

cheers

andrew


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Question about ECPGset_noind_null() and ECPGis_noind_null()
Следующее
От: James Pye
Дата:
Сообщение: Re: Python 3.1 support