Skip to content

Commit 0345b7e

Browse files
committed
Fix a loss of precision warning for Visual C++
1 parent 272f7b0 commit 0345b7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bzfs/commands.cxx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3854,7 +3854,7 @@ bool ModCountCommand::operator() (const char* message, GameKeeper::Player *playe
38543854
}
38553855

38563856
messageText.erase(0, --messageStart);
3857-
float timeModification = atof(messageText.c_str());
3857+
float timeModification = (float)atof(messageText.c_str());
38583858
clOptions->addedTime += timeModification; // remember to add the time
38593859

38603860
char announce[MessageLen] = {0};

0 commit comments

Comments
 (0)