aboutsummaryrefslogtreecommitdiff
path: root/io/param.c
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2015-05-25 16:12:15 +0800
committerDeterminant <[email protected]>2015-05-25 16:12:15 +0800
commitf6c23565901561cfe1d7c3c29266ee60ce1f7bdd (patch)
tree11e4498a19248281eb12039143202280a8720b99 /io/param.c
parentbe922fa355fe385b45a2720d48eaf0c809e1874a (diff)
...
Diffstat (limited to 'io/param.c')
-rw-r--r--io/param.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/io/param.c b/io/param.c
index 91c4d26..7e776a8 100644
--- a/io/param.c
+++ b/io/param.c
@@ -39,7 +39,7 @@ size_t read_param_header_plain(FILE *fp, int *status) {
for (i = 0; i < PARAM_HEADER_SIZE; i++)
if (isdigit(buff[i]))
size = size * 10 + buff[i] - '0';
- fprintf(stderr, "header: %d\n", size);
+ fprintf(stderr, "header: %lu\n", size);
return size;
}
@@ -145,7 +145,7 @@ int nerv_param_file_open_read(lua_State *L, const char *fn) {
pci = (ParamChunkInfo *)malloc(sizeof(ParamChunkInfo));
pci->offset = ftello(fp);
pci->length = param_len - (pci->offset - offset);
- fprintf(stderr, "%d + %d (skip %d)\n", (int)pci->offset,
+ fprintf(stderr, "%d + %d (skip %lu)\n", (int)pci->offset,
(int)pci->length, param_len);
luaT_pushudata(L, pci, nerv_param_chunk_info_tname);
lua_setfield(L, -2, "chunk");