Skip to content

Commit

Permalink
fix check for patch number being 0
Browse files Browse the repository at this point in the history
  • Loading branch information
svigerske committed Jan 12, 2022
1 parent 801c780 commit 62f31ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Report.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ void Report::outputSolverHeader()

env->output->outputInfo("");

if(SHOT_VERSION_PATCH != 0)
if(SHOT_VERSION_PATCH[0] != '0')
{
env->output->outputInfo(fmt::format(" Version: {}.{}.{}. Git hash: {}. Released: {}.", SHOT_VERSION_MAJOR,
SHOT_VERSION_MINOR, SHOT_VERSION_PATCH, SHOT_GITHASH, __DATE__));
Expand Down

0 comments on commit 62f31ee

Please sign in to comment.