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/orange/distvars.cpp

    r8103 r10596  
    753753  int i, e; 
    754754 
    755   unsigned long crc; 
     755  unsigned int crc; 
    756756  INIT_CRC(crc); 
    757757 
     
    909909 
    910910int TDiscDistribution::sumValues() const 
    911 { unsigned long crc; 
     911{ unsigned int crc; 
    912912  INIT_CRC(crc); 
    913913 
     
    12941294 
    12951295int TContDistribution::sumValues() const 
    1296 { unsigned long crc; 
     1296{ unsigned int crc; 
    12971297  INIT_CRC(crc); 
    12981298 
     
    13831383 
    13841384int TGaussianDistribution::sumValues() const 
    1385 { unsigned long crc; 
     1385{ unsigned int crc; 
    13861386  INIT_CRC(crc); 
    13871387  add_CRC(mean, crc); 
Note: See TracChangeset for help on using the changeset viewer.