diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-12-09 11:50:08 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-12-09 11:50:08 -0200 |
commit | 80b3d28f4a9e518bf40b35f786199919180bfcd4 (patch) | |
tree | e25a410ba61883244207e25b16a853991b417ebb /ltable.c | |
parent | 69d97712ecfcd06aa4edb7374b262131210d0bbc (diff) | |
download | lua-80b3d28f4a9e518bf40b35f786199919180bfcd4.tar.gz lua-80b3d28f4a9e518bf40b35f786199919180bfcd4.tar.bz2 lua-80b3d28f4a9e518bf40b35f786199919180bfcd4.zip |
details (mainly error messages)
Diffstat (limited to 'ltable.c')
-rw-r--r-- | ltable.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltable.c,v 1.6 1997/11/19 17:29:23 roberto Exp roberto $ | 2 | ** $Id: ltable.c,v 1.7 1997/11/21 19:00:46 roberto Exp roberto $ |
3 | ** Lua tables (hash) | 3 | ** Lua tables (hash) |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -44,7 +44,7 @@ static long int hashindex (TObject *ref) | |||
44 | break; | 44 | break; |
45 | default: | 45 | default: |
46 | lua_error("unexpected type to index table"); | 46 | lua_error("unexpected type to index table"); |
47 | h = 0; /* UNREACHEABLE */ | 47 | h = 0; /* to avoid warnings */ |
48 | } | 48 | } |
49 | return (h >= 0 ? h : -(h+1)); | 49 | return (h >= 0 ? h : -(h+1)); |
50 | } | 50 | } |