]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix error in opencascade assert 601/head
authorTimo Heister <timo.heister@gmail.com>
Wed, 25 Feb 2015 13:40:53 +0000 (08:40 -0500)
committerTimo Heister <timo.heister@gmail.com>
Wed, 25 Feb 2015 13:40:53 +0000 (08:40 -0500)
source/opencascade/utilities.cc

index 7b76e7a15e1adb46507d6ac1ba21779e3e7d459f..9b3e93c86c0723d9cd671c42eb89f9037c64a0ed 100644 (file)
@@ -260,11 +260,11 @@ namespace OpenCASCADE
     STEPControl_Writer SCW;
     IFSelect_ReturnStatus status;
     status = SCW.Transfer(shape, STEPControl_AsIs);
-    AssertThrow(status = IFSelect_RetDone, ExcMessage("Failed to add shape to STEP controller."));
+    AssertThrow(status == IFSelect_RetDone, ExcMessage("Failed to add shape to STEP controller."));
 
     status = SCW.Write(filename.c_str());
 
-    AssertThrow(status = IFSelect_RetDone, ExcMessage("Failed to write translated shape to STEP file."));
+    AssertThrow(status == IFSelect_RetDone, ExcMessage("Failed to write translated shape to STEP file."));
   }
 
   double get_shape_tolerance(const TopoDS_Shape &shape)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.