ports/cad/opencascade/files/patch-ros_src_STEPConstruct_STEPConstruct_AP203Context.cxx
Thierry Thomas fcd940ea6e Fix a bug triggered on amd64 by Cristiano Rolim.
Submitted by:	Cristiano Rolim <cristianorolim (at) hotmail<dot>com>
2009-01-26 17:57:30 +00:00

11 lines
657 B
C++

--- ./ros/src/STEPConstruct/STEPConstruct_AP203Context.cxx.orig 2001-09-21 10:00:28.000000000 +0200
+++ ./ros/src/STEPConstruct/STEPConstruct_AP203Context.cxx 2009-01-24 11:45:15.000000000 +0100
@@ -103,7 +103,7 @@
Handle(StepBasic_CoordinatedUniversalTimeOffset) zone =
new StepBasic_CoordinatedUniversalTimeOffset;
- Standard_Integer shift = Standard_Integer(timezone);
+ Standard_Integer shift = Standard_Integer((long long) timezone);
Standard_Integer shifth = abs ( shift ) / 3600;
Standard_Integer shiftm = ( abs ( shift ) - shifth * 3600 ) / 60;
StepBasic_AheadOrBehind sense = ( shift >0 ? StepBasic_aobBehind :