Skip to content

Commit

Permalink
GCC compile error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
chrxh committed Dec 16, 2023
1 parent 9c50196 commit 357289e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
### Added
- new simulation parameters to reduce energy particle absorption for cells with fewer connections
- new simulation parameters to configure the decay probability of dying cells
- validation of normal and minimal cell energies in the simulation parameter window
- validation of normal and minimal cell energy parameters in the simulation parameter window

### Changed
- parameter 'Genome size bonus' only takes into account the non-separating parts of the genome
Expand Down
3 changes: 2 additions & 1 deletion source/EngineImpl/DescriptionConverter.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "DescriptionConverter.h"

#include <cmath>
#include <algorithm>
#include <boost/range/adaptor/map.hpp>

Expand Down Expand Up @@ -509,7 +510,7 @@ namespace
{
void checkAndCorrectInvalidEnergy(float& energy)
{
if (isnan(energy) || energy < 0 || energy > 1e12) {
if (std::isnan(energy) || energy < 0 || energy > 1e12) {
energy = 0;
}
}
Expand Down

0 comments on commit 357289e

Please sign in to comment.