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

Fix UBSAN error calculating maxNodeCount #17

Merged
merged 1 commit into from
Sep 3, 2014

Conversation

jefferis
Copy link
Contributor

@jefferis jefferis commented Sep 3, 2014

* should use an explicitly uint64 constant
* simplest is to use ULL suffix
  (LLU is apparently standards compliant but not always supported)
* this came up because the nabor R package wrapping libnabo threw a UBSAN error
  for points with dimension = 1
* closes norlab-ulaval#16
@simonlynen
Copy link
Collaborator

@jefferis Thank you. This closes #16

simonlynen added a commit that referenced this pull request Sep 3, 2014
Fix UBSAN error calculating maxNodeCount
@simonlynen simonlynen merged commit 5bc9540 into norlab-ulaval:master Sep 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

undefined behaviour in kdtree_cpu.cpp caught by -fsanitize=undefined
2 participants