-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creature: Try to make power rounding accurate
- Loading branch information
1 parent
9186c69
commit e3c2948
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e3c2948
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am currently using gcc 13.1 (linux) and get a compiler error about ceilf not being part of std.
If I remove the std:: it compiles correctly. Just a note if anyone else has this issue.
e3c2948
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's missing an
e3c2948
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately that didn't work, I still get the same error message.
e3c2948
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I checked it's a compiler bug that was fixed in gcc 13.3 if I'm reading things right https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79700
an alternative would be to use
std::ceil
or to update/switch the compiler