From f88806a1fbf333b9495ffb9049c67ba27a3a6d49 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 23 Jan 2012 21:02:10 -0200 Subject: "default: lua_assert(0)" in switches helps debugging + uses non-variant types in binary files --- lundump.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lundump.c') diff --git a/lundump.c b/lundump.c index 6a7012b1..0c146272 100644 --- a/lundump.c +++ b/lundump.c @@ -1,5 +1,5 @@ /* -** $Id: lundump.c,v 1.71 2011/12/07 10:39:12 lhf Exp lhf $ +** $Id: lundump.c,v 2.19 2011/12/07 18:03:47 roberto Exp roberto $ ** load precompiled Lua chunks ** See Copyright Notice in lua.h */ @@ -118,6 +118,7 @@ static void LoadConstants(LoadState* S, Proto* f) case LUA_TSTRING: setsvalue2n(S->L,o,LoadString(S)); break; + default: lua_assert(0); } } n=LoadInt(S); -- cgit v1.2.3-55-g6feb