Ignore:
Timestamp:
03/21/12 14:25:16 (2 years ago)
Author:
Matija Polajnar <matija.polajnar@…>
Branch:
default
Message:

Urgent bugfix: Refactor CRC variables from unsigned long to unsigned int to make it work properly on 64-bit machines (with 64-bit Python and libraries). Fixes #1146.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/include/crc32.cpp

    r3289 r10596  
    1 unsigned long crc_table[256]; 
     1unsigned int crc_table[256]; 
    22 
    3 long reflect(unsigned long ref, char ch)  
    4 { unsigned long value(0);  
     3int reflect(unsigned int ref, char ch) 
     4{ unsigned int value(0); 
    55 
    66  for(int i = 1; i < (ch + 1); i++) { 
Note: See TracChangeset for help on using the changeset viewer.