Skip to content

Commit

Permalink
Merge pull request #195 from openexr/master
Browse files Browse the repository at this point in the history
Catch develop branch up with commits in master.
  • Loading branch information
ehanway-ilm committed Jul 25, 2016
2 parents 521b25d + 9101514 commit bc234de
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions OpenEXR/IlmImf/ImfFastHuf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ FastHufDecoder::FastHufDecoder
for (int i = 0; i <= MAX_CODE_LEN; ++i)
{
codeCount[i] = 0;
base[i] = 0xffffffffffffffffL;
base[i] = 0xffffffffffffffffULL;
offset[i] = 0;
}

Expand Down Expand Up @@ -352,7 +352,7 @@ FastHufDecoder::buildTables (Int64 *base, Int64 *offset)

for (int i = 0; i <= MAX_CODE_LEN; ++i)
{
if (base[i] != 0xffffffffffffffffL)
if (base[i] != 0xffffffffffffffffULL)
{
_ljBase[i] = base[i] << (64 - i);
}
Expand All @@ -362,7 +362,7 @@ FastHufDecoder::buildTables (Int64 *base, Int64 *offset)
// Unused code length - insert dummy values
//

_ljBase[i] = 0xffffffffffffffffL;
_ljBase[i] = 0xffffffffffffffffULL;
}
}

Expand Down Expand Up @@ -417,7 +417,7 @@ FastHufDecoder::buildTables (Int64 *base, Int64 *offset)

int minIdx = TABLE_LOOKUP_BITS;

while (minIdx > 0 && _ljBase[minIdx] == 0xffffffffffffffffL)
while (minIdx > 0 && _ljBase[minIdx] == 0xffffffffffffffffULL)
minIdx--;

if (minIdx < 0)
Expand All @@ -427,7 +427,7 @@ FastHufDecoder::buildTables (Int64 *base, Int64 *offset)
// Set the min value such that the table is never tested.
//

_tableMin = 0xffffffffffffffffL;
_tableMin = 0xffffffffffffffffULL;
}
else
{
Expand Down

0 comments on commit bc234de

Please sign in to comment.