Index: tol/btol/real_type/datgrav.cpp
===================================================================
--- tol/btol/real_type/datgrav.cpp	(revision 9d8b614e3e36170941b10c136fa219257c61c71c)
+++ tol/btol/real_type/datgrav.cpp	(revision 16fa4a00ab31dd01fa166ec0e196285c071a61e5)
@@ -2753,6 +2753,6 @@
 //--------------------------------------------------------------------
 {
-  BNameBlock& a = ((BUserNameBlock*)Arg(1))->Contens();
-  BNameBlock& b = ((BUserNameBlock*)Arg(2))->Contens();
+  BSet& a = Set(Arg(1));
+  BSet& b = Set(Arg(2));
   contens_ = (&a==&b);
 }
@@ -2772,6 +2772,6 @@
 //--------------------------------------------------------------------
 {
-  BSet& a = Set(Arg(1));
-  BSet& b = Set(Arg(2));
+  BNameBlock& a = ((BUserNameBlock*)Arg(1))->Contens();
+  BNameBlock& b = ((BUserNameBlock*)Arg(2))->Contens();
   contens_ = (&a==&b);
 }
