Branch: Tag:

2012-07-06

2012-07-06 17:43:50 by Martin Stjernholm <mast@lysator.liu.se>

Fixed integer truncation error in html_encode_string.

This caused _Roxen.html_encode_string to format large integers
incorrectly on 64 bit systems.

490:    /* Optimization, this is basically a inlined cast_int_to_string */    {    char buf[21], *b = buf+19; -  int neg, i, j=0; -  i = Pike_sp[-1].u.integer; +  int neg, j=0; +  INT_TYPE i = Pike_sp[-1].u.integer;    pop_stack();    if( i < 0 )    {