summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 560f7c5)
raw | patch | inline | side by side (parent: 560f7c5)
author | ishmal <ishmal@users.sourceforge.net> | |
Thu, 27 Jul 2006 09:41:22 +0000 (09:41 +0000) | ||
committer | ishmal <ishmal@users.sourceforge.net> | |
Thu, 27 Jul 2006 09:41:22 +0000 (09:41 +0000) |
src/trace/siox.cpp | patch | blob | history |
diff --git a/src/trace/siox.cpp b/src/trace/siox.cpp
index 84f3b39d287849e599fa9f38fd2ce7b9b6c19bcb..f06f943e054c22b4f34e76d04fe59a7bf3fb2a6b 100644 (file)
--- a/src/trace/siox.cpp
+++ b/src/trace/siox.cpp
{
float max= -1000000.0f;
for (int i=0; i<cmSize; i++)
- if (max<cm[i] > max)
- max=cm[i];
+ if (cm[i] > max) max=cm[i];
+
//good to use STL, but max() is not iterative
//float max = *std::max(cm, cm + cmSize);