View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0022965 | Community | OCCT:Foundation Classes | public | 2012-01-31 20:46 | 2012-10-29 10:02 |
| Reporter | Pawel | Assigned To | |||
| Priority | normal | Severity | just a question | ||
| Status | closed | Resolution | no change required | ||
| Platform | Windows | OS | VC++ 2008 | ||
| Product Version | 6.5.2 | ||||
| Summary | 0022965: Standard_Integer on 64 bit systems | ||||
| Description | There 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? | ||||
| Tags | No tags attached. | ||||
| Test case number | |||||
|
|
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. |
| 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 |
|
Note Added: 0019586 | |
| 2012-02-15 17:16 |
|
Status | new => assigned |
| 2012-10-29 10:02 |
|
Status | assigned => closed |
| 2012-10-29 10:02 |
|
Resolution | open => no change required |