Branch: Tag:

2007-04-17

2007-04-17 13:07:26 by Henrik Grubbström (Grubba) <grubba@grubba.org>

make_pike_type() with PIKE_T_INT_UNTYPED now works with INT_TYPE > INT32 again.
Fixes LysLysKOM 15405931.

Rev: src/pike_types.c:1.290

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: pike_types.c,v 1.289 2007/04/17 10:47:14 grubba Exp $ + || $Id: pike_types.c,v 1.290 2007/04/17 13:07:26 grubba Exp $   */      #include "global.h"
650: Inside #if SIZEOF_INT_TYPE > 4
  #if SIZEOF_INT_TYPE > 4   /* a bit kludgy: should maybe really allow 64 bit INT_TYPE */   /* see also extract_type_int */ +     if (min<MIN_INT32) min=MIN_INT32;    else if (min>MAX_INT32) min=MAX_INT32;    if (max<MIN_INT32) max=MIN_INT32;
6660:       case T_INT:    { -  int min = extract_type_int((char *)type_string+1); -  int max = extract_type_int((char *)type_string+5); +  INT32 min = extract_type_int((char *)type_string+1); +  INT32 max = extract_type_int((char *)type_string+5);       *cont = type_string + 9; /* 2*sizeof(INT32) + 1 */    push_int_type(min, max);
6670:       case PIKE_T_INT_UNTYPED:    *cont = type_string + 1; -  push_int_type(0x80000000, 0x7fffffff); +  push_int_type((INT32)-0x80000000, 0x7fffffff);    break;       case T_OBJECT: