Commit a1ebb8b7 authored by Jan Möbius's avatar Jan Möbius
Browse files

size_t fix in arrykernel

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@867 fdac6126-5c0c-442c-9429-916003d36597
parent 435d7141
...@@ -97,7 +97,7 @@ void ArrayKernel::assign_connectivity(const ArrayKernel& _other) ...@@ -97,7 +97,7 @@ void ArrayKernel::assign_connectivity(const ArrayKernel& _other)
// --- handle -> item --- // --- handle -> item ---
VertexHandle ArrayKernel::handle(const Vertex& _v) const VertexHandle ArrayKernel::handle(const Vertex& _v) const
{ {
return VertexHandle(&_v - &vertices_.front()); return VertexHandle( int( &_v - &vertices_.front()));
} }
HalfedgeHandle ArrayKernel::handle(const Halfedge& _he) const HalfedgeHandle ArrayKernel::handle(const Halfedge& _he) const
...@@ -115,12 +115,12 @@ HalfedgeHandle ArrayKernel::handle(const Halfedge& _he) const ...@@ -115,12 +115,12 @@ HalfedgeHandle ArrayKernel::handle(const Halfedge& _he) const
EdgeHandle ArrayKernel::handle(const Edge& _e) const EdgeHandle ArrayKernel::handle(const Edge& _e) const
{ {
return EdgeHandle(&_e - &edges_.front()); return EdgeHandle( int(&_e - &edges_.front() ) );
} }
FaceHandle ArrayKernel::handle(const Face& _f) const FaceHandle ArrayKernel::handle(const Face& _f) const
{ {
return FaceHandle(&_f - &faces_.front()); return FaceHandle( int(&_f - &faces_.front()) );
} }
#define SIGNED(x) signed( (x) ) #define SIGNED(x) signed( (x) )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment