Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
ef19e992
Commit
ef19e992
authored
9 years ago
by
Federico Montesino Pouzols
Browse files
Options
Downloads
Patches
Plain Diff
fix wrong comparison in a fix for error handling issues, re #13951
parent
8a89d3d1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Framework/Kernel/src/ANN/kd_dump.cpp
+1
-1
1 addition, 1 deletion
Framework/Kernel/src/ANN/kd_dump.cpp
with
1 addition
and
1 deletion
Framework/Kernel/src/ANN/kd_dump.cpp
+
1
−
1
View file @
ef19e992
...
@@ -441,7 +441,7 @@ static ANNkd_ptr annReadTree(istream &in, // input stream
...
@@ -441,7 +441,7 @@ static ANNkd_ptr annReadTree(istream &in, // input stream
in
>>
n_bnds
;
// number of bounding sides
in
>>
n_bnds
;
// number of bounding sides
// allocate bounds array
// allocate bounds array
if
(
0
<
n_bnds
||
if
(
0
>
n_bnds
||
static_cast
<
size_t
>
(
std
::
numeric_limits
<
int
>::
max
())
<=
static_cast
<
size_t
>
(
std
::
numeric_limits
<
int
>::
max
())
<=
static_cast
<
size_t
>
(
n_bnds
/
sizeof
(
ANNorthHalfSpace
)))
{
static_cast
<
size_t
>
(
n_bnds
/
sizeof
(
ANNorthHalfSpace
)))
{
annError
(
"Too big number of bounding sides, would cause overflow when "
annError
(
"Too big number of bounding sides, would cause overflow when "
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment