Branch: Tag:

2005-03-09

2005-03-09 12:03:15 by Martin Stjernholm <mast@lysator.liu.se>

Fixed bug where integers were extracted as unsigned when %d was used
in string_builder_vsprintf.

Rev: src/stralloc.c:1.197

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: stralloc.c,v 1.196 2005/02/25 23:33:45 nilsson Exp $ + || $Id: stralloc.c,v 1.197 2005/03/09 12:03:15 mast Exp $   */      #include "global.h"
2650:    flags, min_width, precision);    break;    case 'd': +  flags |= APPEND_SIGNED;    string_builder_append_integer(s, pike_va_int(VA_LIST_ADDR(args), flags), 10, -  flags | APPEND_SIGNED, -  min_width, precision); +  flags, min_width, precision);    break;       /* FIMXE: TODO: Doubles (ie 'a', 'e', 'E', 'g', 'G'). */