View Issue Details

IDProjectCategoryView StatusLast Update
0013600Open CASCADEOCCT:Foundation Classespublic2012-01-13 16:30
ReportermpvAssigned Tompv 
PrioritynormalSeveritytrivial 
Status closedResolutionfixed 
OSLinux 
Summary0013600: Hash code calculation of TopLoc_Location is incorrect on 64-bit platforms
DescriptionIf number of transformations is bigger than 10, the next transformations are
not used for hash code generation (only on 64bit platforms): calculations are
performed on usigned long (64 bits), but returned value is Standard_Integer (32
bits).

Bug is reproduced on SALOME gluing operation (bug IPAL 13563).

It is proposed to put patch for this bug into the version 6.1.1.

Fix is attached.
Additional information
and documentation updates
Documentation remark, added by MPV 2006-10-19 07:43:10:

Improvements:
Hash code of the TopLoc_Location on 64bits-platforms now calculated better. This
fix have no effect on 32bits-platforms because the sizes on 'usigned long' and
'usigned int' variables are the same (4 bytes).
Modified entities:
TopLoc_Location.cxx method TopLoc_Location::HashCode - changed all local
variables type from 'unsigned long' to 'unsigned int'
TagsNo tags attached.
Test case number

Attached Files

Activities

2006-10-10 10:38

 

TopLoc_Location.cxx (8,169 bytes)

Issue History

Date Modified Username Field Change
2006-10-13 12:23 bugmaster BugsThisDependsOn => 13563
2006-10-16 19:10 bugmaster Assigned To bugmaster => mpv
2006-10-16 19:10 bugmaster Status new => assigned
2006-10-19 09:43 mpv Status assigned => resolved
2006-10-20 09:23 mkv Status resolved => tested
2006-10-31 16:49 bugmaster Status tested => verified
2006-11-02 19:11 bugmaster Status verified => closed
2006-11-02 19:11 bugmaster Resolution @0@ => fixed
2011-08-02 11:23 bugmaster Category OCCT:FDC => OCCT:Foundation Classes
2012-01-13 16:30 atp Fixed in Version EMPTY =>
2012-01-13 16:30 atp Description Updated
2012-01-13 16:30 atp Additional Information Updated