[gimp/gimp-2-8] fix bogus overflow warning
- From: Nils Philippsen <nphilipp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-8] fix bogus overflow warning
- Date: Wed, 6 Mar 2013 11:17:21 +0000 (UTC)
commit bc610c8fbd61e9574a2c378829b6ab91047d61b7
Author: Nils Philippsen <nils redhat com>
Date: Wed Mar 6 12:16:43 2013 +0100
fix bogus overflow warning
tile-swap.c: In function ‘tile_swap_command’:
tile-swap.c:721:6: warning: assuming signed overflow does not occur when
assuming that (X + c) < X is always false [-Wstrict-overflow]
app/base/tile-swap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/base/tile-swap.c b/app/base/tile-swap.c
index b65526e..ecc7dc1 100644
--- a/app/base/tile-swap.c
+++ b/app/base/tile-swap.c
@@ -110,7 +110,7 @@ static void tile_swap_gap_destroy (SwapFileGap *gap);
static SwapFile * gimp_swap_file = NULL;
-static const gint64 swap_file_grow = 1024 * TILE_WIDTH * TILE_HEIGHT * 4;
+static const guint64 swap_file_grow = 1024 * TILE_WIDTH * TILE_HEIGHT * 4;
static gboolean seek_err_msg = TRUE;
static gboolean read_err_msg = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]