[gimp/gimp-2-10] Fix warning about using %d format modifier for an unsigned type
- From: Luca Bacci <lbacci src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] Fix warning about using %d format modifier for an unsigned type
- Date: Sat, 8 Oct 2022 09:26:09 +0000 (UTC)
commit d1f173938ac1d16d6230c44058ebca910ba7b262
Author: Luca Bacci <luca bacci982 gmail com>
Date: Fri Oct 7 17:50: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 8f92905c35..5e1e29ca8c 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]