calls to "lua_reportbug" changed to "lua_error", since

"lua_reportbug" is only an internal function to build debug information
This commit is contained in:
Roberto Ierusalimschy
1995-05-02 15:43:03 -03:00
parent 8156604823
commit 18ea2eff80
6 changed files with 34 additions and 34 deletions

5
hash.c
View File

@@ -3,14 +3,13 @@
** hash manager for lua
*/
char *rcs_hash="$Id: hash.c,v 2.23 1995/01/12 14:19:04 roberto Exp $";
char *rcs_hash="$Id: hash.c,v 2.24 1995/02/06 19:34:03 roberto Exp roberto $";
#include <string.h>
#include "mem.h"
#include "opcode.h"
#include "hash.h"
#include "inout.h"
#include "table.h"
#include "lua.h"
@@ -54,7 +53,7 @@ static Word hashindex (Hash *t, Object *ref) /* hash function */
switch (tag(ref))
{
case LUA_T_NIL:
lua_reportbug ("unexpected type to index table");
lua_error ("unexpected type to index table");
return -1; /* UNREACHEABLE */
case LUA_T_NUMBER:
return (((Word)nvalue(ref))%nhash(t));