Skip to content
This repository has been archived by the owner on Jan 12, 2020. It is now read-only.

Commit

Permalink
[CryptoNoteCore] Use static_cast<int> to print block version as other…
Browse files Browse the repository at this point in the history
…wise it doesn't know if the value is character or number.
  • Loading branch information
mtl1979 committed Dec 3, 2019
1 parent 6cfef7a commit 0eace60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CryptoNoteCore/Currency.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ bool Currency::checkProofOfWork(Crypto::cn_context& context, const CachedBlock&
return checkProofOfWorkV2(context, block, currentDiffic);
}

logger(ERROR, BRIGHT_RED) << "Unknown block major version: " << block.getBlock().majorVersion << "." << block.getBlock().minorVersion;
logger(ERROR, BRIGHT_RED) << "Unknown block major version: " << static_cast<int>(block.getBlock().majorVersion) << "." << static_cast<int>(block.getBlock().minorVersion);
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion src/version.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#define APP_VER_MAJOR 0
#define APP_VER_MINOR 4
#define APP_VER_REV 5
#define APP_VER_BUILD 1295
#define APP_VER_BUILD 1308

#define BUILD_COMMIT_ID "@VERSION@"
#define PROJECT_VERSION STR(APP_VER_MAJOR) "." STR(APP_VER_MINOR) "." STR(APP_VER_REV)
Expand Down

0 comments on commit 0eace60

Please sign in to comment.