2008-01-24
2008-01-24 17:48:18 by Martin Stjernholm <mast@lysator.liu.se>
-
4bd49f7294a5dd3904e442c9b546612b39a74394
(7 lines)
(+6/-1)
[
Show
| Annotate
]
Branch: 7.9
Fixed a couple of places where integer svalues without a defined subtype
were put on the stack. (These svalues can cause zero_type() calls to behave
randomly.)
Rev: src/operators.c:1.225
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: operators.c,v 1.224 2008/01/09 13:42:49 grubba Exp $
+ || $Id: operators.c,v 1.225 2008/01/24 17:48:18 mast Exp $
*/
#include "global.h"
280:
#endif /* AUTO_BIGNUM */
{
sp[-1].type=T_INT;
+ sp[-1].subtype = NUMBER_NUMBER;
sp[-1].u.integer=i;
}
}
300: Inside #if defined(AUTO_BIGNUM)
int i=atoi(sp[-1].u.string->str);
free_string(sp[-1].u.string);
sp[-1].type=T_INT;
+ sp[-1].subtype = NUMBER_NUMBER;
sp[-1].u.integer=i;
}
else
314:
int i=STRTOL(sp[-1].u.string->str,0,10);
free_string(sp[-1].u.string);
sp[-1].type=T_INT;
+ sp[-1].subtype = NUMBER_NUMBER;
sp[-1].u.integer=i;
}
#endif /* AUTO_BIGNUM */
4189:
default:
free_svalue(sp-1);
sp[-1].type=T_INT;
+ sp[-1].subtype = NUMBER_NUMBER;
sp[-1].u.integer=0;
}
}