Subject 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