From 9c69091c9d99cd41a008dd5a7b2e1231ba60a7e8 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Fri, 27 Aug 2010 11:39:38 -0500 Subject: [PATCH] [devel] Fix typo in pngtrans.c (ifndef should be ifdef) --- png.c | 10 +++++----- pngtrans.c | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/png.c b/png.c index eccaae504..5d0f41e49 100644 --- a/png.c +++ b/png.c @@ -1,7 +1,7 @@ /* png.c - location for general purpose libpng functions * - * Last changed in libpng 1.5.0 [August 26, 2010] + * Last changed in libpng 1.5.0 [August 27, 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.) @@ -560,13 +560,13 @@ png_get_copyright(png_structp png_ptr) #else # ifdef __STDC__ return PNG_STRING_NEWLINE \ - "libpng version 1.5.0beta46 - August 26, 2010" PNG_STRING_NEWLINE \ + "libpng version 1.5.0beta46 - August 27, 2010" PNG_STRING_NEWLINE \ "Copyright (c) 1998-2010 Glenn Randers-Pehrson" PNG_STRING_NEWLINE \ "Copyright (c) 1996-1997 Andreas Dilger" PNG_STRING_NEWLINE \ "Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc." \ PNG_STRING_NEWLINE; # else - return "libpng version 1.5.0beta46 - August 26, 2010\ + return "libpng version 1.5.0beta46 - August 27, 2010\ Copyright (c) 1998-2010 Glenn Randers-Pehrson\ Copyright (c) 1996-1997 Andreas Dilger\ Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc."; @@ -1637,7 +1637,7 @@ png_reciprocal(png_fixed_point a) static png_fixed_point png_product2(png_fixed_point a, png_fixed_point b) { - /* The required result is 1/a * 1/b, the following preserves accuracy. */ + /* The required result is 1/a * 1/b; the following preserves accuracy. */ #ifdef PNG_FLOATING_ARITHMETIC_SUPPORTED double r = a * 1E-5; r *= b; @@ -1659,7 +1659,7 @@ png_product2(png_fixed_point a, png_fixed_point b) png_fixed_point png_reciprocal2(png_fixed_point a, png_fixed_point b) { - /* The required result is 1/a * 1/b, the following preserves accuracy. */ + /* The required result is 1/a * 1/b; the following preserves accuracy. */ #ifdef PNG_FLOATING_ARITHMETIC_SUPPORTED double r = 1E15/a; r /= b; diff --git a/pngtrans.c b/pngtrans.c index 240418929..d210034fa 100644 --- a/pngtrans.c +++ b/pngtrans.c @@ -1,7 +1,7 @@ /* pngtrans.c - transforms the data in a row (used by both readers and writers) * - * Last changed in libpng 1.5.0 [August 26, 2010] + * Last changed in libpng 1.5.0 [August 27, 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.) @@ -241,7 +241,7 @@ png_do_invert(png_row_infop row_info, png_bytep row) } } -#ifndef PNG_16BIT_SUPPORTED +#ifdef PNG_16BIT_SUPPORTED else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA && row_info->bit_depth == 16) {