aboutsummaryrefslogtreecommitdiff
path: root/lundump.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2012-01-23 21:02:10 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2012-01-23 21:02:10 -0200
commitf88806a1fbf333b9495ffb9049c67ba27a3a6d49 (patch)
treec7af3e066f77c24b7450dd61d84938adcee60ee1 /lundump.c
parentfb6eee2805c02356ffbeac8da8a2b9263af260fe (diff)
downloadlua-f88806a1fbf333b9495ffb9049c67ba27a3a6d49.tar.gz
lua-f88806a1fbf333b9495ffb9049c67ba27a3a6d49.tar.bz2
lua-f88806a1fbf333b9495ffb9049c67ba27a3a6d49.zip
"default: lua_assert(0)" in switches helps debugging + uses
non-variant types in binary files
Diffstat (limited to 'lundump.c')
-rw-r--r--lundump.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lundump.c b/lundump.c
index 6a7012b1..0c146272 100644
--- a/lundump.c
+++ b/lundump.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lundump.c,v 1.71 2011/12/07 10:39:12 lhf Exp lhf $ 2** $Id: lundump.c,v 2.19 2011/12/07 18:03:47 roberto Exp roberto $
3** load precompiled Lua chunks 3** load precompiled Lua chunks
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -118,6 +118,7 @@ static void LoadConstants(LoadState* S, Proto* f)
118 case LUA_TSTRING: 118 case LUA_TSTRING:
119 setsvalue2n(S->L,o,LoadString(S)); 119 setsvalue2n(S->L,o,LoadString(S));
120 break; 120 break;
121 default: lua_assert(0);
121 } 122 }
122 } 123 }
123 n=LoadInt(S); 124 n=LoadInt(S);