From ee2b1452cc65da8dd2aaf1bd4cc8b73fd1f2fb5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Sat, 17 Apr 1999 15:48:01 +0200 Subject: [PATCH] Improved error message. Rev: src/builtin_functions.c:1.167 Rev: src/hashtable.c:1.6 --- src/builtin_functions.c | 4 ++-- src/hashtable.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/builtin_functions.c b/src/builtin_functions.c index eae21cd73a..8f020bf12f 100644 --- a/src/builtin_functions.c +++ b/src/builtin_functions.c @@ -5,7 +5,7 @@ \*/ /**/ #include "global.h" -RCSID("$Id: builtin_functions.c,v 1.166 1999/04/12 02:24:12 hubbe Exp $"); +RCSID("$Id: builtin_functions.c,v 1.167 1999/04/17 13:45:52 grubba Exp $"); #include "interpret.h" #include "svalue.h" #include "pike_macros.h" @@ -114,7 +114,7 @@ void f_hash(INT32 args) break; default: - fatal("Foo!\n"); + fatal("hash(): Bad string shift:%d\n", sp[-args].u.string->size_shift); } if(args > 1) diff --git a/src/hashtable.c b/src/hashtable.c index 237b3d537f..6b6341eaad 100644 --- a/src/hashtable.c +++ b/src/hashtable.c @@ -9,7 +9,7 @@ #include "stuff.h" #include "error.h" -RCSID("$Id: hashtable.c,v 1.5 1998/11/22 11:02:51 hubbe Exp $"); +RCSID("$Id: hashtable.c,v 1.6 1999/04/17 13:48:01 grubba Exp $"); static unsigned INT32 gobble(struct pike_string *s) { @@ -84,7 +84,7 @@ struct hash_table *hash_rehash(struct hash_table *h,int size) #ifdef PIKE_DEBUG if( 1 << my_log2(size) != size) - fatal("Size is not a exponent of two!\n"); + fatal("Size is not a power of two!\n"); #endif new=(struct hash_table *)calloc(1,sizeof(struct hash_table)+ -- GitLab