mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng17] Changed "if (!x)" to "if (x == 0)" and "if (x)" to "if (x !== 0)"
This commit is contained in:
7
png.c
7
png.c
@@ -696,13 +696,13 @@ png_get_copyright(png_const_structrp png_ptr)
|
||||
#else
|
||||
# ifdef __STDC__
|
||||
return PNG_STRING_NEWLINE \
|
||||
"libpng version 1.7.0beta39 - October 17, 2014" PNG_STRING_NEWLINE \
|
||||
"libpng version 1.7.0beta39 - October 26, 2014" PNG_STRING_NEWLINE \
|
||||
"Copyright (c) 1998-2014 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.7.0beta39 - October 17, 2014\
|
||||
return "libpng version 1.7.0beta39 - October 26, 2014\
|
||||
Copyright (c) 1998-2014 Glenn Randers-Pehrson\
|
||||
Copyright (c) 1996-1997 Andreas Dilger\
|
||||
Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.";
|
||||
@@ -3180,7 +3180,8 @@ png_muldiv(png_fixed_point_p res, png_fixed_point a, png_int_32 times,
|
||||
result = -result;
|
||||
|
||||
/* Check for overflow. */
|
||||
if ((negative && result <= 0) || (!negative && result >= 0))
|
||||
if ((negative != 0 && result <= 0) ||
|
||||
(negative == 0 && result >= 0))
|
||||
{
|
||||
*res = result;
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user