diff options
author | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2015-01-30 10:24:58 -0600 |
---|---|---|
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2015-01-30 10:26:13 -0600 |
commit | 173432da9eb67ca5cdf80e64eda1492afaa2190d (patch) | |
tree | 7fff20f7576af85ade9d00d594a657df8d104b79 /pngset.c | |
parent | 4df1247bd628d2f1c5489c9e3e103894e5e69579 (diff) | |
download | libpng-173432da9eb67ca5cdf80e64eda1492afaa2190d.tar.gz |
[lbpng14] Quieted some harmless warnings from Coverity-scan.
Diffstat (limited to 'pngset.c')
-rw-r--r-- | pngset.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,8 +1,8 @@ /* pngset.c - storage of image information into info struct * - * Last changed in libpng 1.4.13 [February 6, 2014] - * Copyright (c) 1998-2014 Glenn Randers-Pehrson + * Last changed in libpng 1.4.15 [%RDATE%] + * Copyright (c) 1998-2015 Glenn Randers-Pehrson * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) * @@ -150,7 +150,7 @@ png_set_gAMA_fixed(png_structp png_ptr, png_infop info_ptr, png_fixed_point if (png_ptr == NULL || info_ptr == NULL) return; - if (int_gamma > (png_fixed_point)PNG_UINT_31_MAX) + if (int_gamma >= (png_fixed_point)PNG_UINT_31_MAX) { png_warning(png_ptr, "Limiting gamma to 21474.83"); png_gamma=PNG_UINT_31_MAX; |