From fcd940ea6ec7687d0c42cd428f9b0c75a3b397e9 Mon Sep 17 00:00:00 2001 From: Thierry Thomas Date: Mon, 26 Jan 2009 17:57:30 +0000 Subject: [PATCH] Fix a bug triggered on amd64 by Cristiano Rolim. Submitted by: Cristiano Rolim com> --- cad/opencascade/Makefile | 2 +- ...s_src_STEPConstruct_STEPConstruct_AP203Context.cxx | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 cad/opencascade/files/patch-ros_src_STEPConstruct_STEPConstruct_AP203Context.cxx diff --git a/cad/opencascade/Makefile b/cad/opencascade/Makefile index fed93b66df46..556b88a193e9 100644 --- a/cad/opencascade/Makefile +++ b/cad/opencascade/Makefile @@ -7,7 +7,7 @@ PORTNAME= opencascade PORTVERSION= 6.3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= cad science MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= thierry diff --git a/cad/opencascade/files/patch-ros_src_STEPConstruct_STEPConstruct_AP203Context.cxx b/cad/opencascade/files/patch-ros_src_STEPConstruct_STEPConstruct_AP203Context.cxx new file mode 100644 index 000000000000..245322f6345c --- /dev/null +++ b/cad/opencascade/files/patch-ros_src_STEPConstruct_STEPConstruct_AP203Context.cxx @@ -0,0 +1,11 @@ +--- ./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 :