mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
Fixes: https://trac.macports.org/ticket/69232 Fixes: https://trac.macports.org/ticket/67489 See also: https://sourceforge.net/p/freeimage/patches/153 https://github.com/AcademySoftwareFoundation/openexr/pull/126
48 lines
1.3 KiB
Diff
48 lines
1.3 KiB
Diff
--- Source/OpenEXR/IlmImf/ImfFastHuf.cpp.orig 2017-11-18 15:00:24.000000000 +0800
|
|
+++ Source/OpenEXR/IlmImf/ImfFastHuf.cpp 2024-01-30 02:54:44.000000000 +0800
|
|
@@ -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
|
|
{
|