Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
23069be1
Commit
23069be1
authored
Aug 15, 2015
by
Sebastian Eichelbaum
Browse files
[CHANGE] fixed warning-> using std::abs now
parent
247c71ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/modules/hierarchicalClustering/hierchClustDisplay/WHcoord.cpp
...les/hierarchicalClustering/hierchClustDisplay/WHcoord.cpp
+2
-2
No files found.
src/modules/hierarchicalClustering/hierchClustDisplay/WHcoord.cpp
View file @
23069be1
...
@@ -138,7 +138,7 @@ std::vector<WHcoord> WHcoord::getPhysNbs( const WHcoord dataSize, const unsigned
...
@@ -138,7 +138,7 @@ std::vector<WHcoord> WHcoord::getPhysNbs( const WHcoord dataSize, const unsigned
{
{
for
(
coord_t
k
=
-
range
;
k
<=
range
;
++
k
)
for
(
coord_t
k
=
-
range
;
k
<=
range
;
++
k
)
{
{
const
int
test
(
abs
(
i
)
+
abs
(
j
)
+
abs
(
k
)
);
const
int
test
(
std
::
abs
(
i
)
+
std
::
abs
(
j
)
+
std
::
abs
(
k
)
);
if
(
test
==
0
)
if
(
test
==
0
)
{
{
continue
;
// dont use the voxel itself as neighbour
continue
;
// dont use the voxel itself as neighbour
...
@@ -173,7 +173,7 @@ std::vector<WHcoord> WHcoord::getPhysNbs( const WHcoord dataSize, const unsigned
...
@@ -173,7 +173,7 @@ std::vector<WHcoord> WHcoord::getPhysNbs( const WHcoord dataSize, const unsigned
{
{
for
(
coord_t
k
=-
2
;
k
<=
2
;
k
+=
2
)
for
(
coord_t
k
=-
2
;
k
<=
2
;
k
+=
2
)
{
{
const
int
test
(
abs
(
i
)
+
abs
(
j
)
+
abs
(
k
)
);
const
int
test
(
std
::
abs
(
i
)
+
std
::
abs
(
j
)
+
std
::
abs
(
k
)
);
if
(
test
!=
2
)
if
(
test
!=
2
)
{
{
continue
;
continue
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment