use %zd instead of %d for size_t
[paraslash.git] / filter_chain.c
index d59ff7094fc37075b97f914b925d3ac776439591..6265f19c931dc26b53a76eecfd887164961c928d 100644 (file)
@@ -18,7 +18,6 @@
 
 /** \file filter_chain.c common helper functions for filter input/output */
 
-#include "gcc-compat.h"
 #include "para.h"
 #include "list.h"
 #include "filter.h"
@@ -124,7 +123,7 @@ again:
                int ret;
                if (*loaded && fn->loaded < fn->bufsize) {
                        size_t old_fn_loaded = fn->loaded;
-                       PARA_DEBUG_LOG("fc %p loaded: %d, calling %s convert\n", fci, *loaded, fn->filter->name);
+                       PARA_DEBUG_LOG("fc %p loaded: %zd, calling %s convert\n", fci, *loaded, fn->filter->name);
                        ret = fn->filter->convert(ib, *loaded, fn);
                        if (ret < 0) {
                                if (!fci->error)
@@ -135,7 +134,7 @@ again:
                        *loaded -= ret;
                        conv += ret;
                        if (*loaded && ret) {
-                               PARA_DEBUG_LOG("moving %d bytes in input buffer for %s filter\n",
+                               PARA_DEBUG_LOG("moving %zd bytes in input buffer for %s filter\n",
                                        *loaded,  fn->filter->name);
                                memmove(ib, ib + ret, *loaded);
                        }