Branch: Tag:

2001-04-10

2001-04-10 22:55:55 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Workaround in ins_int() for vac/AIX5L/IA64 optimizer bug.

Rev: src/program.c:1.292

5:   \*/   /**/   #include "global.h" - RCSID("$Id: program.c,v 1.291 2001/02/05 14:39:07 grubba Exp $"); + RCSID("$Id: program.c,v 1.292 2001/04/10 22:55:55 grubba Exp $");   #include "program.h"   #include "object.h"   #include "dynamic_buffer.h"
233:   void ins_int(INT32 i, void (*func)(char tmp))   {    int e; -  for(e=0;e<(long)sizeof(i);e++) func(EXTRACT_UCHAR(((char *)&i)+e)); +  unsigned char *p = (unsigned char *)&i; +  for(e=0;e<(long)sizeof(i);e++) { +  func(p[e]);    } -  + }      void ins_short(INT16 i, void (*func)(char tmp))   {