[MOAB-dev] commit/MOAB: iulian07: explicit conversions for a tuple list in spatial locator

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Tue Mar 4 16:37:38 CST 2014


1 new commit in MOAB:

https://bitbucket.org/fathomteam/moab/commits/97b5d61e7a8d/
Changeset:   97b5d61e7a8d
Branch:      master
User:        iulian07
Date:        2014-03-04 23:33:27
Summary:     explicit conversions for a tuple list in spatial locator

32 bit machines balked at the conversion between (EntityHandle*) and
ulong*
not sure yet why, but this makes the code clearer, anyway.

Affected #:  1 file

diff --git a/src/SpatialLocator.cpp b/src/SpatialLocator.cpp
index 694122c..f976ae7 100644
--- a/src/SpatialLocator.cpp
+++ b/src/SpatialLocator.cpp
@@ -263,7 +263,9 @@ namespace moab
           iargs[1] = TLforward_o.vi_rd[3*i+2];
           iargs[2] = locTable.get_n();
           TLsearch_results_o.push_back(iargs, NULL, NULL, NULL);
-          locTable.push_back(const_cast<int*>(&TLforward_o.vi_rd[3*i+1]), NULL, &ents[i], &params[3*i]);
+          ulong ent_ulong=(ulong)ents[i];
+          sint forward= (sint)TLforward_o.vi_rd[3*i+1];
+          locTable.push_back(&forward, NULL, &ent_ulong, &params[3*i]);
         }
       }
       locTable.disableWriteAccess();

Repository URL: https://bitbucket.org/fathomteam/moab/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.


More information about the moab-dev mailing list