pike.git/
src/
modules/
_Roxen/
roxen.c
Branch:
Tag:
Non-build tags
All tags
No tags
2012-07-06
2012-07-06 17:45:56 by Martin Stjernholm <mast@lysator.liu.se>
c0d5e1542e4e5434f4865a216205442141b6a271 (
8
lines) (+
7
/-
1
)
[
Show
|
Annotate
]
Branch:
7.8
Fixed formatting error for _Roxen.html_encode_string (Int.NATIVE_MIN).
492:
char buf[21], *b = buf+19; int neg, j=0; INT_TYPE i = Pike_sp[-1].u.integer;
-
pop_stack();
+
if( i < 0 ) { neg = 1; i = -i;
-
+
if (i < 0) {
+
/* The largest negative number cannot be negated. */
+
o_cast_to_string();
+
return;
}
-
+
}
else neg = 0;
-
+
pop_stack();
buf[20] = 0;