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/examples.cpp

    r10591 r10596  
    383383#include "stringvars.hpp" 
    384384 
    385 inline void addToCRC(unsigned long &crc, const PVarList &vars, TValue *&vli) 
     385inline void addToCRC(unsigned int &crc, const PVarList &vars, TValue *&vli) 
    386386{ 
    387387  const_PITERATE(TVarList, vi, vars) { 
     
    400400} 
    401401 
    402 void TExample::addToCRC(unsigned long &crc, const bool includeMetas) const 
     402void TExample::addToCRC(unsigned int &crc, const bool includeMetas) const 
    403403{ 
    404404  TValue *vli = values; 
     
    426426 
    427427int TExample::sumValues(const bool includeMetas) const 
    428 { unsigned long crc; 
     428{ unsigned int crc; 
    429429  INIT_CRC(crc); 
    430430  addToCRC(crc, includeMetas); 
Note: See TracChangeset for help on using the changeset viewer.