summaryrefslogtreecommitdiff
path: root/misc/par/patches/patch-aj
diff options
context:
space:
mode:
Diffstat (limited to 'misc/par/patches/patch-aj')
-rw-r--r--misc/par/patches/patch-aj26
1 files changed, 26 insertions, 0 deletions
diff --git a/misc/par/patches/patch-aj b/misc/par/patches/patch-aj
new file mode 100644
index 00000000000..83422a30f5d
--- /dev/null
+++ b/misc/par/patches/patch-aj
@@ -0,0 +1,26 @@
+$NetBSD: patch-aj,v 1.1.1.1 2002/01/04 19:53:23 fredb Exp $
+
+--- Arena/Source/jpeg.c.orig Thu Feb 19 09:57:26 1998
++++ Arena/Source/jpeg.c Tue Feb 8 18:33:17 2000
+@@ -531,8 +531,8 @@
+ case 1:
+ cr = cg = cb = scan_buffer[xpos];
+ GetColour(cr, cg, cb, &ulp);
+- *dp++ = ((char*)&ulp)[0]; /* LSB first! */
+- *dp++ = ((char*)&ulp)[1];
++ *dp++ = (ulp ) & 0xFF; /* LSB first! */
++ *dp++ = (ulp >> 8) & 0xFF;
+ break;
+
+ case 3:
+@@ -540,8 +540,8 @@
+ cg = scan_buffer[1+(xpos * 3)];
+ cb = scan_buffer[2+(xpos * 3)];
+ GetColour(cr, cg, cb, &ulp);
+- *dp++ = ((char*)&ulp)[0]; /* LSB first! */
+- *dp++ = ((char*)&ulp)[1];
++ *dp++ = (ulp ) & 0xFF; /* LSB first! */
++ *dp++ = (ulp >> 8) & 0xFF;
+ break;
+
+ default: