diff options
author | Hiroki Sato <hrs@FreeBSD.org> | 2013-05-01 02:45:12 +0000 |
---|---|---|
committer | Hiroki Sato <hrs@FreeBSD.org> | 2013-05-01 02:45:12 +0000 |
commit | 6cbb39d5e59b8c9869dd883731e05027f914d132 (patch) | |
tree | 233aaa622aecadadc1d839888d2a15892ac0621d /print/ghostscript7/files/patch-src-gxclrast.c | |
parent | - Fix DATADIR. (diff) |
Fix issues on 64-bit platforms.
Notes
Notes:
svn path=/head/; revision=316980
Diffstat (limited to 'print/ghostscript7/files/patch-src-gxclrast.c')
-rw-r--r-- | print/ghostscript7/files/patch-src-gxclrast.c | 15 |
1 files changed, 15 insertions, 0 deletions
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; + } |