Index: third_party/libjpeg_turbo/rdppm.c |
=================================================================== |
--- third_party/libjpeg_turbo/rdppm.c (revision 95020) |
+++ third_party/libjpeg_turbo/rdppm.c (working copy) |
@@ -2,6 +2,7 @@ |
* rdppm.c |
* |
* Copyright (C) 1991-1997, Thomas G. Lane. |
+ * Modified 2009 by Bill Allombert, Guido Vollbeding. |
* This file is part of the Independent JPEG Group's software. |
* For conditions of distribution and use, see the accompanying README file. |
* |
@@ -250,8 +251,8 @@ |
bufferptr = source->iobuffer; |
for (col = cinfo->image_width; col > 0; col--) { |
register int temp; |
- temp = UCH(*bufferptr++); |
- temp |= UCH(*bufferptr++) << 8; |
+ temp = UCH(*bufferptr++) << 8; |
+ temp |= UCH(*bufferptr++); |
*ptr++ = rescale[temp]; |
} |
return 1; |
@@ -274,14 +275,14 @@ |
bufferptr = source->iobuffer; |
for (col = cinfo->image_width; col > 0; col--) { |
register int temp; |
- temp = UCH(*bufferptr++); |
- temp |= UCH(*bufferptr++) << 8; |
+ temp = UCH(*bufferptr++) << 8; |
+ temp |= UCH(*bufferptr++); |
*ptr++ = rescale[temp]; |
- temp = UCH(*bufferptr++); |
- temp |= UCH(*bufferptr++) << 8; |
+ temp = UCH(*bufferptr++) << 8; |
+ temp |= UCH(*bufferptr++); |
*ptr++ = rescale[temp]; |
- temp = UCH(*bufferptr++); |
- temp |= UCH(*bufferptr++) << 8; |
+ temp = UCH(*bufferptr++) << 8; |
+ temp |= UCH(*bufferptr++); |
*ptr++ = rescale[temp]; |
} |
return 1; |