Subject [Firebird-devel] Re: [ib-support] Current status of the bugs around isc4.gdb on fb1.0.2
Author Ann W. Harrison
At 06:10 PM 1/17/2003 +1100, Mark O'Donohue wrote:


>It was one of the :
>- sh = va_arg (ptr, USHORT);
>
>to:
>
>+ /* sh = va_arg (ptr, USHORT); */
>+ sh = (USHORT) va_arg (ptr, int);
>
>changes in jrd/misc.c

OK. That's not going to generate the same code - an int
being generally four bytes and a USHORT two. In the past
we avoided using int because it meant different things on
different platforms (e.g. Cray) and caused bugs like this.

Wouldn't this be better?

sh = (USHORT) va_arg (ptr, USHORT);


Regards,

Ann
www.ibphoenix.com




-------------------------------------------------------
This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts will
allow you to extend the highest allowed 128 bit encryption to all your
clients even if they use browsers that are limited to 40 bit encryption.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en
_______________________________________________
Firebird-devel mailing list
Firebird-devel@...
https://lists.sourceforge.net/lists/listinfo/firebird-devel