[gimp] Fix warning about using %d format modifier for an unsigned type



commit 9ef4aee21b81dbe3d3546f495c1ed4f9c4893eb9
Author: Luca Bacci <luca bacci982 gmail com>
Date:   Sat Sep 24 10:53:49 2022 +0200

    Fix warning about using %d format modifier for an unsigned type
    
    GetLastError () returns a DWORD, which is a typedef for a 32 bit
    unsigned integral.

 app/plug-in/gimppluginshm.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/app/plug-in/gimppluginshm.c b/app/plug-in/gimppluginshm.c
index c929c2fe58..1fb60c29ee 100644
--- a/app/plug-in/gimppluginshm.c
+++ b/app/plug-in/gimppluginshm.c
@@ -162,14 +162,14 @@ gimp_plug_in_shm_new (void)
           }
         else
           {
-            g_printerr ("MapViewOfFile error: %d... " ERRMSG_SHM_DISABLE,
-                        GetLastError ());
+            g_printerr ("MapViewOfFile error: %u... " ERRMSG_SHM_DISABLE,
+                        (unsigned) GetLastError ());
           }
       }
     else
       {
-        g_printerr ("CreateFileMapping error: %d... " ERRMSG_SHM_DISABLE,
-                    GetLastError ());
+        g_printerr ("CreateFileMapping error: %u... " ERRMSG_SHM_DISABLE,
+                    (unsigned) GetLastError ());
       }
   }
 


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