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 caf245d commit e44cf1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/EngineImpl/DescriptionConverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ namespace
{
void checkAndCorrectInvalidEnergy(float& energy)
{
if (std::isnan(energy) || energy < 0 || energy > 1e12) {
if (isnan(energy) || energy < 0 || energy > 1e12) {

Check failure on line 512 in source/EngineImpl/DescriptionConverter.cpp

View workflow job for this annotation

GitHub Actions / build

‘isnan’ was not declared in this scope
energy = 0;
}
}
Expand Down

0 comments on commit e44cf1d

Please sign in to comment.