Branch: Tag:

2000-09-07

2000-09-07 11:35:17 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed a few warnings.

Rev: src/builtin_functions.c:1.311
Rev: src/interpret.c:1.169
Rev: src/mapping.c:1.100
Rev: src/modules/_Image_TIFF/image_tiff.c:1.21
Rev: src/pike_types.h:1.45

5:   \*/   /**/   #include "global.h" - RCSID("$Id: mapping.c,v 1.99 2000/09/03 23:18:46 mast Exp $"); + RCSID("$Id: mapping.c,v 1.100 2000/09/07 11:31:05 grubba Exp $");   #include "main.h"   #include "object.h"   #include "mapping.h"
1553:    }    }    -  sprintf(buf, m->data->size == 1 ? "([ /* %ld element */\n" : -  "([ /* %ld elements */\n", -  (long)m->data->size); +  if (m->data->size == 1) { +  my_strcat("([ /* 1 element */\n"); +  } else { +  sprintf(buf, "([ /* %ld elements */\n", (long)m->data->size);    my_strcat(buf); -  +  }       a = mapping_indices(m);    SET_ONERROR(err, do_free_array, a);