forked from storpipfugl/pykdtree
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix additional integer overflow issues
- correct the condition for using 32bit int indices - previous condition: `n_points < UINT_MAX` - however the data array in the C code has size `n_points * n_dim` and is indexed using a 32bit int type (see e.g. the PA macro) - this means results were incorrect for the case where `n_points < UINT_MAX` and `n_points * n_dim >= UINT_MAX` - new condition: `n_points * n_dim < UINT_MAX` - resolves storpipfugl#138 - render mako template - the generated _kdtree_core.c did not contain latest changes from _kdtree_core.c.mako (sorry my mistake) - this meant results were incorrect for the case `n_points < UINT_MAX` and `n_query * k >= UINT_MAX` - resolves storpipfugl#137 - use signed 64bit ints for the OpenMP loop on all platforms - to support OpenMP versions < 3 which only allow signed integers as loop counters
- Loading branch information
Showing
3 changed files
with
14 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters