diff options
author | tron <tron> | 2014-08-13 19:23:08 +0000 |
---|---|---|
committer | tron <tron> | 2014-08-13 19:23:08 +0000 |
commit | fb96dcf16ac2b54fc64d64deaff9b8745428aa04 (patch) | |
tree | 554637cbba2f8a2cef28f63d685e48c8a755bd91 /graphics/openexr/patches | |
parent | cd5aad9d197171d322e7dfe1d845ca9dc0acb03e (diff) | |
download | pkgsrc-fb96dcf16ac2b54fc64d64deaff9b8745428aa04.tar.gz |
Fix build on 32bit platforms.
Bump the package revision as it is possible that the broken code compiled
on some platforms but won't work properly.
Diffstat (limited to 'graphics/openexr/patches')
-rw-r--r-- | graphics/openexr/patches/patch-IlmImf_ImfFastHuf.cpp | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/graphics/openexr/patches/patch-IlmImf_ImfFastHuf.cpp b/graphics/openexr/patches/patch-IlmImf_ImfFastHuf.cpp new file mode 100644 index 00000000000..d74e6a298d3 --- /dev/null +++ b/graphics/openexr/patches/patch-IlmImf_ImfFastHuf.cpp @@ -0,0 +1,51 @@ +$NetBSD: patch-IlmImf_ImfFastHuf.cpp,v 1.1 2014/08/13 19:23:09 tron Exp $ + +Fix build on 32bit systems. + +--- IlmImf/ImfFastHuf.cpp.orig 2014-08-10 05:23:56.000000000 +0100 ++++ IlmImf/ImfFastHuf.cpp 2014-08-13 19:36:21.000000000 +0100 +@@ -107,7 +107,7 @@ + for (int i = 0; i <= MAX_CODE_LEN; ++i) + { + codeCount[i] = 0; +- base[i] = 0xffffffffffffffffL; ++ base[i] = 0xffffffffffffffffULL; + offset[i] = 0; + } + +@@ -352,7 +352,7 @@ + + for (int i = 0; i <= MAX_CODE_LEN; ++i) + { +- if (base[i] != 0xffffffffffffffffL) ++ if (base[i] != 0xffffffffffffffffULL) + { + _ljBase[i] = base[i] << (64 - i); + } +@@ -362,7 +362,7 @@ + // Unused code length - insert dummy values + // + +- _ljBase[i] = 0xffffffffffffffffL; ++ _ljBase[i] = 0xffffffffffffffffULL; + } + } + +@@ -417,7 +417,7 @@ + + int minIdx = TABLE_LOOKUP_BITS; + +- while (minIdx > 0 && _ljBase[minIdx] == 0xffffffffffffffffL) ++ while (minIdx > 0 && _ljBase[minIdx] == 0xffffffffffffffffULL) + minIdx--; + + if (minIdx < 0) +@@ -427,7 +427,7 @@ + // Set the min value such that the table is never tested. + // + +- _tableMin = 0xffffffffffffffffL; ++ _tableMin = 0xffffffffffffffffULL; + } + else + { |