Branch: Tag:

2007-03-21

2007-03-21 13:55:55 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed broken code in low_type_to_string().

Rev: src/pike_types.c:1.264

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: pike_types.c,v 1.263 2007/03/20 17:39:04 grubba Exp $ + || $Id: pike_types.c,v 1.264 2007/03/21 13:55:55 grubba Exp $   */      #include "global.h"
5175:    case T_STRING:    {    INT32 width = (INT32)CAR_TO_INT(t); +  if (width == 32) {    my_putchar(T_STRING); -  my_putchar((width >> 24) & 0xff); -  my_putchar((width >> 16) & 0xff); -  my_putchar((width >> 8) & 0xff); +  } else { +  my_putchar(PIKE_T_NSTRING);    my_putchar(width & 0xff);    } -  +  }    break;       case T_INT: