Branch: Tag:

2000-10-19

2000-10-19 14:05:48 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed a few warnings.

Rev: src/array.c:1.91
Rev: src/pike_memory.c:1.92

23:   #include "stuff.h"   #include "bignum.h"    - RCSID("$Id: array.c,v 1.90 2000/10/10 01:20:37 hubbe Exp $"); + RCSID("$Id: array.c,v 1.91 2000/10/19 13:58:45 grubba Exp $");      PMOD_EXPORT struct array empty_array=   {
1526:    }    }    -  sprintf(buf, a->size == 1 ? "({ /* %ld element */\n" : -  "({ /* %ld elements */\n", -  (long)a->size); +  if (a->size == 1) { +  sprintf(buf, "({ /* 1 element */\n"); +  } else { +  sprintf(buf, "({ /* %ld elements */\n", (long)a->size); +  }    my_strcat(buf);    describe_array_low(a,&doing,indent);    my_putchar('\n');