X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fq.c;h=a2d7a63a989d06bf98efdfdd8bd578a439c4fe6e;hp=67597df414ab06f727eb94d6a6fe422a74279650;hb=2391d7ae5d8a145a250a8b80ab8c93ba74eba030;hpb=05861649cece70d65e7ba84c3696039c0143ce9c diff --git a/lib/q.c b/lib/q.c index 67597df..a2d7a63 100644 --- a/lib/q.c +++ b/lib/q.c @@ -508,7 +508,7 @@ void _trie_dump(trielayer_t*t, char*buffer, int pos) } if(t->rest) { buffer[pos]=0; - printf("%s%s %08x\n", buffer, t->rest, t->data); + printf("%s%s %08x\n", buffer, t->rest, (int)t->data); } } @@ -1083,9 +1083,9 @@ void dict_dump(dict_t*h, FILE*fi, const char*prefix) dictentry_t*e = h->slots[t]; while(e) { if(h->key_type!=&charptr_type) { - fprintf(fi, "%s%08x=%08x\n", prefix, e->key, e->data); + fprintf(fi, "%s%08x=%08x\n", prefix, (int)e->key, (int)e->data); } else { - fprintf(fi, "%s%s=%08x\n", prefix, e->key, e->data); + fprintf(fi, "%s%s=%08x\n", prefix, (char*)e->key, (int)e->data); } e = e->next; } @@ -1337,7 +1337,7 @@ static void freestring(void*data) static void dumpmapentry(void*data, const void*key, void*value) { FILE*fi = (FILE*)data; - fprintf(fi, "%s=%s\n", key, (char*)value); + fprintf(fi, "%s=%s\n", (char*)key, (char*)value); } void map_dump(map_t*map, FILE*fi, const char*prefix) {