[gegl] opencl: cast arguments to printf that are size_t



commit 3e6fe1ea086a12354193b321bef37aea0d0aa612
Author: Ãyvind KolÃs <pippin gimp org>
Date:   Thu Apr 26 21:15:09 2012 +0200

    opencl: cast arguments to printf that are size_t
    
    This makes it work regardless of whether the platform has 32bit or 64bit
    size_t, and silences gcc's (correct) warnings.

 gegl/opencl/gegl-cl-init.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gegl/opencl/gegl-cl-init.c b/gegl/opencl/gegl-cl-init.c
index 34d1ece..554005b 100644
--- a/gegl/opencl/gegl-cl-init.c
+++ b/gegl/opencl/gegl-cl-init.c
@@ -279,7 +279,9 @@ gegl_cl_init (GError **error)
         }
       cl_state.iter_width  /= 2;
 
-      GEGL_NOTE (GEGL_DEBUG_OPENCL, "Iteration size: (%lu, %lu)", cl_state.iter_width, cl_state.iter_height);
+      GEGL_NOTE (GEGL_DEBUG_OPENCL, "Iteration size: (%lu, %lu)",
+                                    (long unsigned int)cl_state.iter_width,
+                                    (long unsigned int)cl_state.iter_height);
 
       if (cl_state.image_support)
         {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]