From 353cbc2e89c582e07796f01bce8f203e84c8ae46 Mon Sep 17 00:00:00 2001 From: Brendan Bolles Date: Thu, 14 Aug 2014 18:49:56 -0700 Subject: [PATCH] Change suffixes to ULL because Int64 is unsigned As discusses in pull request #126 --- OpenEXR/IlmImf/ImfFastHuf.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/OpenEXR/IlmImf/ImfFastHuf.cpp b/OpenEXR/IlmImf/ImfFastHuf.cpp index 01edad401a..10bc3187e8 100644 --- a/OpenEXR/IlmImf/ImfFastHuf.cpp +++ b/OpenEXR/IlmImf/ImfFastHuf.cpp @@ -107,7 +107,7 @@ FastHufDecoder::FastHufDecoder for (int i = 0; i <= MAX_CODE_LEN; ++i) { codeCount[i] = 0; - base[i] = 0xffffffffffffffffLL; + base[i] = 0xffffffffffffffffULL; offset[i] = 0; } @@ -352,7 +352,7 @@ FastHufDecoder::buildTables (Int64 *base, Int64 *offset) for (int i = 0; i <= MAX_CODE_LEN; ++i) { - if (base[i] != 0xffffffffffffffffLL) + if (base[i] != 0xffffffffffffffffULL) { _ljBase[i] = base[i] << (64 - i); } @@ -362,7 +362,7 @@ FastHufDecoder::buildTables (Int64 *base, Int64 *offset) // Unused code length - insert dummy values // - _ljBase[i] = 0xffffffffffffffffLL; + _ljBase[i] = 0xffffffffffffffffULL; } } @@ -417,7 +417,7 @@ FastHufDecoder::buildTables (Int64 *base, Int64 *offset) int minIdx = TABLE_LOOKUP_BITS; - while (minIdx > 0 && _ljBase[minIdx] == 0xffffffffffffffffLL) + while (minIdx > 0 && _ljBase[minIdx] == 0xffffffffffffffffULL) minIdx--; if (minIdx < 0) @@ -427,7 +427,7 @@ FastHufDecoder::buildTables (Int64 *base, Int64 *offset) // Set the min value such that the table is never tested. // - _tableMin = 0xffffffffffffffffLL; + _tableMin = 0xffffffffffffffffULL; } else {