pike.git/
src/
stralloc.c
Branch:
Tag:
Non-build tags
All tags
No tags
1999-10-23
1999-10-23 00:43:44 by Fredrik Noring <noring@nocrew.org>
775f3d118c890e3a9e4ec68fd5d72521a8c5372c (
8
lines) (+
6
/-
2
)
[
Show
|
Annotate
]
Branch:
7.9
Fixed warning.
Rev: src/interpreter.h:1.15
Rev: src/stralloc.c:1.69
25:
#define HUGE HUGE_VAL #endif /*!HUGE*/
-
RCSID("$Id: stralloc.c,v 1.
68
1999/10/
22
16
:
50
:
55
noring Exp $");
+
RCSID("$Id: stralloc.c,v 1.
69
1999/10/
23
00
:
43
:
44
noring Exp $");
#define BEGIN_HASH_SIZE 997 #define MAX_AVG_LINK_LENGTH 3
1881:
int convert_stack_top_string_to_inumber(int base) { struct svalue r;
+
int i;
if(sp[-1].type != T_STRING) error("Cannot convert stack top to integer number.\n");
-
string_to_svalue_inumber(&r, sp[-1].u.string->str, 0, base, 0);
+
i =
string_to_svalue_inumber(&r, sp[-1].u.string->str, 0, base, 0);
free_string(sp[-1].u.string); sp[-1] = r;
-
+
+
return i;
} /* Convert PCHARP to a double. If ENDPTR is not NULL, a pointer to the