summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-11-28 21:06:28 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-11-28 21:06:28 +0100
commitba9a306d0f661d1955430fb0beefe9e2590de475 (patch)
treebe37baa7ca7133ac858189e011dc3af8a0fdc28d /src
parent464a18dd3e473d9fa9acdbfb144ca730148fa33a (diff)
Fix 64bit compile warning.
Diffstat (limited to 'src')
-rw-r--r--src/versionstr.cc7
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;
}