Skip to content

Commit 4a50d15

Browse files
committed
BUG: Fix GW_Face::GetEdgeNumber to return -1 if edge is not found
This commit fixes the following warning introduced in 3e42453 (ENH: Add SelectByPoints tool to DynamicModeler) /path/to/SurfaceToolbox/DynamicModeler/Logic/FastMarching/gw_core/GW_Face.inl: In member function ‘GW::GW_I32 GW::GW_Face::GetEdgeNumber(const GW::GW_Vertex&, const GW::GW_Vertex&)’: /path/to/SurfaceToolbox/DynamicModeler/Logic/FastMarching/gw_core/GW_Face.inl:359:9: warning: converting to non-pointer type ‘long int’ from NULL [-Wconversion-null] return NULL; ^
1 parent 8dd9ce0 commit 4a50d15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DynamicModeler/Logic/FastMarching/gw_core/GW_Face.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ GW_I32 GW_Face::GetEdgeNumber( const GW_Vertex& Vert1, const GW_Vertex& Vert2 )
356356
return (i+1)%3;
357357
}
358358
}
359-
return NULL;
359+
return -1;
360360
}
361361

362362

0 commit comments

Comments
 (0)