aboutsummaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/hash.c b/hash.c
index 88303b43..22e7d547 100644
--- a/hash.c
+++ b/hash.c
@@ -3,14 +3,13 @@
3** hash manager for lua 3** hash manager for lua
4*/ 4*/
5 5
6char *rcs_hash="$Id: hash.c,v 2.23 1995/01/12 14:19:04 roberto Exp $"; 6char *rcs_hash="$Id: hash.c,v 2.24 1995/02/06 19:34:03 roberto Exp roberto $";
7 7
8#include <string.h> 8#include <string.h>
9 9
10#include "mem.h" 10#include "mem.h"
11#include "opcode.h" 11#include "opcode.h"
12#include "hash.h" 12#include "hash.h"
13#include "inout.h"
14#include "table.h" 13#include "table.h"
15#include "lua.h" 14#include "lua.h"
16 15
@@ -54,7 +53,7 @@ static Word hashindex (Hash *t, Object *ref) /* hash function */
54 switch (tag(ref)) 53 switch (tag(ref))
55 { 54 {
56 case LUA_T_NIL: 55 case LUA_T_NIL:
57 lua_reportbug ("unexpected type to index table"); 56 lua_error ("unexpected type to index table");
58 return -1; /* UNREACHEABLE */ 57 return -1; /* UNREACHEABLE */
59 case LUA_T_NUMBER: 58 case LUA_T_NUMBER:
60 return (((Word)nvalue(ref))%nhash(t)); 59 return (((Word)nvalue(ref))%nhash(t));