aboutsummaryrefslogtreecommitdiff
path: root/ldump.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldump.c')
-rw-r--r--ldump.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/ldump.c b/ldump.c
index 93cadbcc..4d29b94e 100644
--- a/ldump.c
+++ b/ldump.c
@@ -111,21 +111,21 @@ static void DumpConstants (const Proto *f, DumpState *D) {
111 DumpInt(n, D); 111 DumpInt(n, D);
112 for (i = 0; i < n; i++) { 112 for (i = 0; i < n; i++) {
113 const TValue *o = &f->k[i]; 113 const TValue *o = &f->k[i];
114 DumpByte(ttypetag(o), D); 114 int tt = ttypetag(o);
115 switch (ttypetag(o)) { 115 DumpByte(tt, D);
116 case LUA_TNIL: case LUA_TFALSE: case LUA_TTRUE: 116 switch (tt) {
117 break; 117 case LUA_VNUMFLT:
118 case LUA_TNUMFLT:
119 DumpNumber(fltvalue(o), D); 118 DumpNumber(fltvalue(o), D);
120 break; 119 break;
121 case LUA_TNUMINT: 120 case LUA_VNUMINT:
122 DumpInteger(ivalue(o), D); 121 DumpInteger(ivalue(o), D);
123 break; 122 break;
124 case LUA_TSHRSTR: 123 case LUA_VSHRSTR:
125 case LUA_TLNGSTR: 124 case LUA_VLNGSTR:
126 DumpString(tsvalue(o), D); 125 DumpString(tsvalue(o), D);
127 break; 126 break;
128 default: lua_assert(0); 127 default:
128 lua_assert(tt == LUA_VNIL || tt == LUA_VFALSE || tt == LUA_VTRUE);
129 } 129 }
130 } 130 }
131} 131}