diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-05-02 15:43:03 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-05-02 15:43:03 -0300 |
commit | 18ea2eff80c720632cb6a89d560c5cce2377df06 (patch) | |
tree | 67fc3acd282d134099b2f92657e191baeaff1277 /hash.c | |
parent | 8156604823aa487f4436d33fe89302598faab3db (diff) | |
download | lua-18ea2eff80c720632cb6a89d560c5cce2377df06.tar.gz lua-18ea2eff80c720632cb6a89d560c5cce2377df06.tar.bz2 lua-18ea2eff80c720632cb6a89d560c5cce2377df06.zip |
calls to "lua_reportbug" changed to "lua_error", since
"lua_reportbug" is only an internal function to build debug information
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -3,14 +3,13 @@ | |||
3 | ** hash manager for lua | 3 | ** hash manager for lua |
4 | */ | 4 | */ |
5 | 5 | ||
6 | char *rcs_hash="$Id: hash.c,v 2.23 1995/01/12 14:19:04 roberto Exp $"; | 6 | char *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)); |