diff options
author | jdc <jdc> | 2006-09-24 17:09:13 +0000 |
---|---|---|
committer | jdc <jdc> | 2006-09-24 17:09:13 +0000 |
commit | db864a3fa65789442e67ac1bc8a4847482f5d88e (patch) | |
tree | 5f91c936cf23dc06dadd2a3feb07539cd27f2de2 /print/cups/patches | |
parent | 869d0790b6eeebbdd4e791eae6be66295d39cda5 (diff) | |
download | pkgsrc-db864a3fa65789442e67ac1bc8a4847482f5d88e.tar.gz |
Make this compile on sparc64 with gcc 4.
(Need to cast to something at least as wide as "void *" - e.g. "long".)
OK wiz@, joerg@.
Diffstat (limited to 'print/cups/patches')
-rw-r--r-- | print/cups/patches/patch-am | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/print/cups/patches/patch-am b/print/cups/patches/patch-am new file mode 100644 index 00000000000..9f2e7496db4 --- /dev/null +++ b/print/cups/patches/patch-am @@ -0,0 +1,17 @@ +$NetBSD: patch-am,v 1.7 2006/09/24 17:09:13 jdc Exp $ + +--- pdftops/GfxFont.cxx.dist 2004-02-02 22:41:09.000000000 +0000 ++++ pdftops/GfxFont.cxx 2006-09-24 16:12:03.000000000 +0100 +@@ -969,7 +969,11 @@ + if ((nameToGID = ff->getNameToGID())) { + for (i = 0; i < 256; ++i) { + if (!map[i] && (charName = enc[i])) { +- map[i] = (Gushort)(int)nameToGID->lookup(charName); ++ /* ++ * Note that we are casting from "void *" here. ++ * So, we must first cast to something at least as wide. ++ */ ++ map[i] = (Gushort)(long)nameToGID->lookup(charName); + } + } + delete nameToGID; |