DiscussionsIssue archiveOther usage issues

Archived discussion

[PATCH] Fix gcc 4.4.5 error - BRepTools_Modifier.cxx

Other usage issuesSat, 03/19/2011 - 23:561 reply

Browse this forum
QuestionAuthor

https://github.com/tpaviot/oce/commit/2101c046536f56a04c727fd32c3b4e42f7...

OCC650PATCH

--- a/ros/src/BRepTools/BRepTools_Modifier.cxx
+++ b/ros/src/BRepTools/BRepTools_Modifier.cxx
@@ -372,7 +372,7 @@ Standard_Boolean BRepTools_Modifier::Rebuild
if ( ! isClosed )
{
TopLoc_Location aLoc;
- TopoDS_Shape resface = (myMap.IsBound(face) ? myMap(face) : face);
+ TopoDS_Shape resface = (myMap.IsBound(face) ? myMap(face) : (TopoDS_Shape)face);
if(resface.IsNull())
resface = face;
Handle(Geom_Surface) aSurf = BRep_Tool::Surface(TopoDS::Face(resface), aLoc);

Discussion

1 archived reply

Posts are displayed in their archived order.

01Author

Ack! This patch is not necessary with the official sources. I need to dig into this and figure out what the @%$^@%# is going on.

Sorry
Author