From 6cbb39d5e59b8c9869dd883731e05027f914d132 Mon Sep 17 00:00:00 2001 From: Hiroki Sato Date: Wed, 1 May 2013 02:45:12 +0000 Subject: Fix issues on 64-bit platforms. --- print/ghostscript7/files/patch-src-gxclrast.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 print/ghostscript7/files/patch-src-gxclrast.c (limited to 'print/ghostscript7/files/patch-src-gxclrast.c') diff --git a/print/ghostscript7/files/patch-src-gxclrast.c b/print/ghostscript7/files/patch-src-gxclrast.c new file mode 100644 index 000000000000..59d5053ad305 --- /dev/null +++ b/print/ghostscript7/files/patch-src-gxclrast.c @@ -0,0 +1,15 @@ +--- src/gxclrast.c.orig 2013-04-30 09:13:13.000000000 +0900 ++++ src/gxclrast.c 2013-04-30 09:13:41.000000000 +0900 +@@ -87,10 +87,10 @@ + private long + cmd_get_w(const byte * p, const byte ** rp) + { +- long val = *p++ & 0x7f; ++ int val = *p++ & 0x7f; + int shift = 7; + +- for (; val += (long)(*p & 0x7f) << shift, *p++ > 0x7f; shift += 7); ++ for (; val += (int)(*p & 0x7f) << shift, *p++ > 0x7f; shift += 7); + *rp = p; + return val; + } -- cgit v1.2.3