From ba9a306d0f661d1955430fb0beefe9e2590de475 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 28 Nov 2013 21:06:28 +0100 Subject: Fix 64bit compile warning. --- src/versionstr.cc | 7 +++++-- 1 file 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; } -- cgit v1.2.3