Subject | Re: [ib-support] Current status of the bugs around isc4.gdb on fb1.0.2 |
---|---|
Author | Ann W. Harrison |
Post date | 2003-01-17T15:01:23Z |
At 06:10 PM 1/17/2003 +1100, Mark O'Donohue wrote:
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
>It was one of the :OK. That's not going to generate the same code - an int
>- sh = va_arg (ptr, USHORT);
>
>to:
>
>+ /* sh = va_arg (ptr, USHORT); */
>+ sh = (USHORT) va_arg (ptr, int);
>
>changes in jrd/misc.c
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