summaryrefslogtreecommitdiffstats
path: root/third_party/libpng/pngwtran.c
diff options
context:
space:
mode:
authormaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-18 18:43:47 +0000
committermaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-18 18:43:47 +0000
commit7e1e1d207ef6e11fb5790b95c737c9b1f4ffdada (patch)
tree9f6784239ab8fae1ab8d6c26ae783c8c0976896e /third_party/libpng/pngwtran.c
parentf71a1883052a6d722c57b7f08b7770a9d6e0a7fa (diff)
downloadchromium_src-7e1e1d207ef6e11fb5790b95c737c9b1f4ffdada.zip
chromium_src-7e1e1d207ef6e11fb5790b95c737c9b1f4ffdada.tar.gz
chromium_src-7e1e1d207ef6e11fb5790b95c737c9b1f4ffdada.tar.bz2
Update libpng to 1.2.33.
Review URL: http://codereview.chromium.org/15041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7230 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/libpng/pngwtran.c')
-rw-r--r--third_party/libpng/pngwtran.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/third_party/libpng/pngwtran.c b/third_party/libpng/pngwtran.c
index 0372fe6..e9374dc 100644
--- a/third_party/libpng/pngwtran.c
+++ b/third_party/libpng/pngwtran.c
@@ -25,7 +25,7 @@ png_do_write_transformations(png_structp png_ptr)
#if defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED)
if (png_ptr->transformations & PNG_USER_TRANSFORM)
- if(png_ptr->write_user_transform_fn != NULL)
+ if (png_ptr->write_user_transform_fn != NULL)
(*(png_ptr->write_user_transform_fn)) /* user write transform function */
(png_ptr, /* png_ptr */
&(png_ptr->row_info), /* row_info: */
@@ -558,8 +558,8 @@ png_do_write_intrapixel(png_row_infop row_info, png_bytep row)
png_uint_32 s0 = (*(rp ) << 8) | *(rp+1);
png_uint_32 s1 = (*(rp+2) << 8) | *(rp+3);
png_uint_32 s2 = (*(rp+4) << 8) | *(rp+5);
- png_uint_32 red = (png_uint_32)((s0-s1) & 0xffffL);
- png_uint_32 blue = (png_uint_32)((s2-s1) & 0xffffL);
+ png_uint_32 red = (png_uint_32)((s0 - s1) & 0xffffL);
+ png_uint_32 blue = (png_uint_32)((s2 - s1) & 0xffffL);
*(rp ) = (png_byte)((red >> 8) & 0xff);
*(rp+1) = (png_byte)(red & 0xff);
*(rp+4) = (png_byte)((blue >> 8) & 0xff);