Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Fix GW_Face::GetEdgeNumber to return -1 if edge is not found #49

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jcfr
Copy link
Member

@jcfr jcfr commented Nov 2, 2021

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;
           ^

@jcfr
Copy link
Member Author

jcfr commented Nov 2, 2021

Following discussion with @lassoan during Slicer hangout of Nov 2nd 2021, we decided not fix this as it could potentially introduce crashes. Further investigations are required.

jcfr added a commit to jcfr/SlicerSurfaceToolbox that referenced this pull request Nov 2, 2021
…ound"

This reverts commit f9494db.

Following discussion with @lassoan during Slicer hangout of Nov 2nd
2021, we decided not fix this as it could potentially introduce crashes.
Further investigations are required.

See Slicer#49
jcfr added a commit that referenced this pull request Nov 2, 2021
…ound"

This reverts commit f9494db.

Following discussion with @lassoan during Slicer hangout of Nov 2nd
2021, we decided not fix this as it could potentially introduce crashes.
Further investigations are required.

See #49
@lassoan lassoan marked this pull request as draft December 8, 2021 05:48
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;
           ^
@jcfr jcfr force-pushed the fix-gw-face-get-edge-number-return branch from 4a50d15 to 083f223 Compare June 26, 2023 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant