diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-04-01 11:39:55 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-04-01 11:39:55 -0300 |
commit | 607be77ec8d2b6062077772a55831a5aca16fb2d (patch) | |
tree | 160fdbdaab4cf577e94e2f1f78a4d717a26bfcd1 /ldump.c | |
parent | 0d745ed04c93e907e9f2bd8c21ce1ca27bba9b6a (diff) | |
download | lua-607be77ec8d2b6062077772a55831a5aca16fb2d.tar.gz lua-607be77ec8d2b6062077772a55831a5aca16fb2d.tar.bz2 lua-607be77ec8d2b6062077772a55831a5aca16fb2d.zip |
some details to avoid warnings
Diffstat (limited to 'ldump.c')
-rw-r--r-- | ldump.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldump.c,v 2.27 2014/03/11 18:56:27 roberto Exp roberto $ | 2 | ** $Id: ldump.c,v 2.28 2014/03/27 15:58:05 roberto Exp roberto $ |
3 | ** save precompiled Lua chunks | 3 | ** save precompiled Lua chunks |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -73,7 +73,7 @@ static void DumpString (const TString *s, DumpState *D) { | |||
73 | else { | 73 | else { |
74 | size_t size = s->tsv.len + 1; /* include trailing '\0' */ | 74 | size_t size = s->tsv.len + 1; /* include trailing '\0' */ |
75 | if (size < 0xFF) | 75 | if (size < 0xFF) |
76 | DumpByte(size, D); | 76 | DumpByte(cast_int(size), D); |
77 | else { | 77 | else { |
78 | DumpByte(0xFF, D); | 78 | DumpByte(0xFF, D); |
79 | DumpVar(size, D); | 79 | DumpVar(size, D); |