diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-11-28 21:06:28 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-11-28 21:06:28 +0100 |
commit | ba9a306d0f661d1955430fb0beefe9e2590de475 (patch) | |
tree | be37baa7ca7133ac858189e011dc3af8a0fdc28d /src | |
parent | 464a18dd3e473d9fa9acdbfb144ca730148fa33a (diff) |
Fix 64bit compile warning.
Diffstat (limited to 'src')
-rw-r--r-- | src/versionstr.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/versionstr.cc b/src/versionstr.cc index e90caa8..90557f6 100644 --- a/src/versionstr.cc +++ b/src/versionstr.cc @@ -79,8 +79,11 @@ VersionStr::operator std::string() const { std::string v; char buf[64]; - if(patch()) sprintf(buf, "%d.%d.%d", major(), minor(), patch()); - else sprintf(buf, "%d.%d", major(), minor()); + if(patch()) { + sprintf(buf, "%d.%d.%d", (int)major(), (int)minor(), (int)patch()); + } else { + sprintf(buf, "%d.%d", (int)major(), (int)minor()); + } v = buf; return v; } |