View Issue Details

IDProjectCategoryView StatusLast Update
0022965CommunityOCCT:Foundation Classespublic2012-10-29 10:02
ReporterPawel Assigned Toabv 
PrioritynormalSeverityjust a question 
Status closedResolutionno change required 
PlatformWindowsOSVC++ 2008 
Product Version6.5.2 
Summary0022965: Standard_Integer on 64 bit systems
DescriptionThere are a lot of warnings like (German version of VS):

Warnung 129 warning C4267: 'Argument': Konvertierung von 'size_t' nach 'const Standard_Integer', Datenverlust möglich c:\OpenCASCADE6.5.0\ros\src\LDOM\LDOM_BasicElement.cxx 415

when casting from size_t to Standard_Integer.

Would it be possible/feasible to typdef Standard_Integer as

typedef __int64 Standard_Integer;

for 64bit systems?
TagsNo tags attached.
Test case number

Activities

abv

2012-02-15 17:16

manager   ~0019586

The Standard_Integer type is intended explicitly to be OCCT equivalent of int, and changing it to other type would cause compatibility problems. Thus, the proposed fix seems to me not feasible.

This kind of warnings should be addressed on a case-by-case basis; the typical case is when some class field which is Standard_Integer has to be changed to Standard_Size.

Issue History

Date Modified Username Field Change
2012-01-31 20:46 Pawel New Issue
2012-01-31 20:46 Pawel Assigned To => abv
2012-02-15 17:16 abv Note Added: 0019586
2012-02-15 17:16 abv Status new => assigned
2012-10-29 10:02 abv Status assigned => closed
2012-10-29 10:02 abv Resolution open => no change required