From 7663ccc1ecd19f1a554b492df0e35b0c53e0e053 Mon Sep 17 00:00:00 2001 From: Bob Friesenhahn Date: Sat, 29 Aug 2015 20:39:17 +0000 Subject: [PATCH] Fix compiler warning about constant value promotion to unsigned long. --- libtiff/tif_dirread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtiff/tif_dirread.c b/libtiff/tif_dirread.c index 606366c8..bb0620b4 100644 --- a/libtiff/tif_dirread.c +++ b/libtiff/tif_dirread.c @@ -1,4 +1,4 @@ -/* $Id: tif_dirread.c,v 1.187 2015-05-31 21:09:33 bfriesen Exp $ */ +/* $Id: tif_dirread.c,v 1.188 2015-08-29 20:39:17 bfriesen Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -3221,7 +3221,7 @@ TIFFReadDirEntryCheckRangeSlongLong8(uint64 value) static enum TIFFReadDirEntryErr TIFFReadDirEntryCheckRangeSlongSlong8(int64 value) { - if ((value < 0L-0x80000000L) || (value > 0x7FFFFFFFL)) + if ((value < 0L-0x80000000UL) || (value > 0x7FFFFFFFL)) return(TIFFReadDirEntryErrRange); else return(TIFFReadDirEntryErrOk);