Changeset 1130 for cpp/frams/vm
- Timestamp:
- 04/16/21 15:55:34 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/vm/classes/collectionobj.cpp
r1076 r1130 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-202 0Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2021 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 6 6 #include <common/nonstd_math.h> //sqrt in borland 7 7 #include <frams/util/validitychecks.h> 8 #include < common/nonstd_stl.h>8 #include <algorithm> 9 9 #include <frams/util/sstringutils.h> 10 10 #ifndef NO_VMACHINE … … 228 228 s += d * d; 229 229 } 230 ret->setDouble(sqrt(s / max(1, data.size() - 1)));230 ret->setDouble(sqrt(s / std::max(1, data.size() - 1))); 231 231 } 232 232
Note: See TracChangeset
for help on using the changeset viewer.