Ticket #51470: patch-too-long-long.diff
File patch-too-long-long.diff, 1.2 KB (added by ballapete (Peter "Pete" Dyballa), 8 years ago) |
---|
-
IlmImf/ImfFastHuf.cpp
old new 107 107 for (int i = 0; i <= MAX_CODE_LEN; ++i) 108 108 { 109 109 codeCount[i] = 0; 110 base[i] = 0xffffffffffffffff L;110 base[i] = 0xffffffffffffffffULL; 111 111 offset[i] = 0; 112 112 } 113 113 … … 352 352 353 353 for (int i = 0; i <= MAX_CODE_LEN; ++i) 354 354 { 355 if (base[i] != 0xffffffffffffffff L)355 if (base[i] != 0xffffffffffffffffULL) 356 356 { 357 357 _ljBase[i] = base[i] << (64 - i); 358 358 } … … 362 362 // Unused code length - insert dummy values 363 363 // 364 364 365 _ljBase[i] = 0xffffffffffffffff L;365 _ljBase[i] = 0xffffffffffffffffULL; 366 366 } 367 367 } 368 368 … … 417 417 418 418 int minIdx = TABLE_LOOKUP_BITS; 419 419 420 while (minIdx > 0 && _ljBase[minIdx] == 0xffffffffffffffff L)420 while (minIdx > 0 && _ljBase[minIdx] == 0xffffffffffffffffULL) 421 421 minIdx--; 422 422 423 423 if (minIdx < 0) … … 427 427 // Set the min value such that the table is never tested. 428 428 // 429 429 430 _tableMin = 0xffffffffffffffff L;430 _tableMin = 0xffffffffffffffffULL; 431 431 } 432 432 else 433 433 {