Changeset 1130 for cpp/frams/vm/classes


Ignore:
Timestamp:
04/16/21 15:55:34 (3 years ago)
Author:
Maciej Komosinski
Message:

Used std::min(), std::max() explicitly to avoid compiler confusion. Used std::size() explicitly instead of the equivalent macro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/vm/classes/collectionobj.cpp

    r1076 r1130  
    11// This file is a part of Framsticks SDK.  http://www.framsticks.com/
    2 // Copyright (C) 1999-2020  Maciej Komosinski and Szymon Ulatowski.
     2// Copyright (C) 1999-2021  Maciej Komosinski and Szymon Ulatowski.
    33// See LICENSE.txt for details.
    44
     
    66#include <common/nonstd_math.h> //sqrt in borland
    77#include <frams/util/validitychecks.h>
    8 #include <common/nonstd_stl.h>
     8#include <algorithm>
    99#include <frams/util/sstringutils.h>
    1010#ifndef NO_VMACHINE
     
    228228                s += d * d;
    229229        }
    230         ret->setDouble(sqrt(s / max(1, data.size() - 1)));
     230        ret->setDouble(sqrt(s / std::max(1, data.size() - 1)));
    231231}
    232232
Note: See TracChangeset for help on using the changeset viewer.