Ignore:
Timestamp:
Feb 18, 2008, 6:33:06 PM (17 years ago)
Author:
ole
Message:

Only apply 64 bit fix on 64 bit platforms!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/utilities/system_tools.py

    r5045 r5046  
    187187    fid.close()
    188188
    189     crcval = x - ((x & 0x80000000) << 1) #Guido's 64 bit fix (http://bugs.python.org/issue1202)
    190    
     189    if os.name == 'posix' and os.uname()[4] == 'x86_64':
     190        #Guido's 64 bit fix (http://bugs.python.org/issue1202)       
     191        crcval = x - ((x & 0x80000000) << 1)
     192    else:
     193        crcval = x
    191194    return crcval
Note: See TracChangeset for help on using the changeset viewer.