summaryrefslogtreecommitdiff
path: root/pngerror.c
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2010-07-31 06:34:36 -0500
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2010-07-31 06:34:36 -0500
commit4009a76e9724e2ef936add6d3d7c05ca4d143500 (patch)
treea67c53c95937a697e0fee6d2ce5edbaf9bff9561 /pngerror.c
parent459432a1b82c847b98407136f4f6db8f06875567 (diff)
downloadlibpng-4009a76e9724e2ef936add6d3d7c05ca4d143500.tar.gz
[devel] Implemented remaining "_fixed" functions and corrected warnings
that were recently introduced, mostly resulting from safe but uncast assignments to shorter integers. Also added a zlib VStudio release library project because the latest zlib Official Windows build does not include such a thing.
Diffstat (limited to 'pngerror.c')
-rw-r--r--pngerror.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/pngerror.c b/pngerror.c
index 363460eb2..7b40d4865 100644
--- a/pngerror.c
+++ b/pngerror.c
@@ -1,7 +1,7 @@
/* pngerror.c - stub functions for i/o and memory allocation
*
- * Last changed in libpng 1.5.0 [July 30, 2010]
+ * Last changed in libpng 1.5.0 [July 31, 2010]
* Copyright (c) 1998-2010 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.)
@@ -240,7 +240,7 @@ png_chunk_benign_error(png_structp png_ptr, png_const_charp error_message)
#ifdef PNG_ERROR_TEXT_SUPPORTED
#ifdef PNG_FLOATING_POINT_SUPPORTED
void
-png_fixed_error(png_structp png_ptr, png_const_charp name, double value)
+png_fixed_error(png_structp png_ptr, png_const_charp name)
{
# define fixed_message "fixed point overflow in "
# define fixed_message_ln ((sizeof fixed_message)-1)
@@ -254,9 +254,7 @@ png_fixed_error(png_structp png_ptr, png_const_charp name, double value)
++iin;
}
msg[fixed_message_ln + iin] = 0;
- /* To discover 'value' put a breakpoint here: */
png_error(png_ptr, msg);
- value = value; /* Quiet the compiler */
}
#endif
#endif