pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/print/stylewriter Transform a lvalue cast into a rvalu...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8ffd84605c60
branches: trunk
changeset: 506628:8ffd84605c60
user: joerg <joerg%pkgsrc.org@localhost>
date: Fri Jan 20 01:19:23 2006 +0000
description:
Transform a lvalue cast into a rvalue cast.
diffstat:
print/stylewriter/distinfo | 3 ++-
print/stylewriter/patches/patch-aa | 37 +++++++++++++++++++++++++++++++++++++
2 files changed, 39 insertions(+), 1 deletions(-)
diffs (52 lines):
diff -r b588806a495c -r 8ffd84605c60 print/stylewriter/distinfo
--- a/print/stylewriter/distinfo Fri Jan 20 01:06:22 2006 +0000
+++ b/print/stylewriter/distinfo Fri Jan 20 01:19:23 2006 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.3 2005/02/24 12:51:44 agc Exp $
+$NetBSD: distinfo,v 1.4 2006/01/20 01:19:23 joerg Exp $
SHA1 (stylewriter.tar.gz) = 8efbbe7510341584ac5170b178f8e6c50c0f6f91
RMD160 (stylewriter.tar.gz) = 86484c2e8e357d891533c2d52c8e5f5ff64eb544
Size (stylewriter.tar.gz) = 30136 bytes
+SHA1 (patch-aa) = 95102908a20719d06503b3d51c026f70747c88ef
diff -r b588806a495c -r 8ffd84605c60 print/stylewriter/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/print/stylewriter/patches/patch-aa Fri Jan 20 01:19:23 2006 +0000
@@ -0,0 +1,37 @@
+$NetBSD: patch-aa,v 1.1 2006/01/20 01:19:23 joerg Exp $
+
+--- lpstyl.c.orig 2006-01-20 01:13:29.000000000 +0000
++++ lpstyl.c
+@@ -1015,10 +1015,13 @@ size_t readFileScanline(char *bufK, char
+ if((i & 0x03) == 0)
+ {
+ /* write the output */
+- *((unsigned char *)bufK)++ = cmyk & 0x000000FF; cmyk >>= 8;
+- *((unsigned char *)bufY)++ = cmyk & 0x000000FF; cmyk >>= 8;
+- *((unsigned char *)bufM)++ = cmyk & 0x000000FF; cmyk >>= 8;
+- *((unsigned char *)bufC)++ = cmyk & 0x000000FF;
++ *bufK++ = (char)(cmyk & 0x000000FF);
++ cmyk >>= 8;
++ *bufY++ = (char)(cmyk & 0x000000FF);
++ cmyk >>= 8;
++ *bufM++ = (char)(cmyk & 0x000000FF);
++ cmyk >>= 8;
++ *bufC++ = (char)(cmyk & 0x000000FF);
+ cmyk = 0;
+ }
+ }
+@@ -1031,10 +1034,10 @@ size_t readFileScanline(char *bufK, char
+ }
+
+ /* write the final part */
+- *((unsigned char *)bufK)++ = cmyk & 0x000000FF; cmyk >>= 8;
+- *((unsigned char *)bufY)++ = cmyk & 0x000000FF; cmyk >>= 8;
+- *((unsigned char *)bufM)++ = cmyk & 0x000000FF; cmyk >>= 8;
+- *((unsigned char *)bufC)++ = cmyk & 0x000000FF;
++ *bufK++ = (char)(cmyk & 0x000000FF); cmyk >>= 8;
++ *bufY++ = (char)(cmyk & 0x000000FF); cmyk >>= 8;
++ *bufM++ = (char)(cmyk & 0x000000FF); cmyk >>= 8;
++ *bufC++ = (char)(cmyk & 0x000000FF);
+ }
+ else
+ {
Home |
Main Index |
Thread Index |
Old Index