From 9573cffd8df40a81cd7c338d63d07e4965eb3854 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 20 Sep 2009 16:16:36 +0000 Subject: [PATCH] Fix compile erorrs on 64-bit systems --- source/lexicalcast.cpp | 2 +- source/utils.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/lexicalcast.cpp b/source/lexicalcast.cpp index 9ba642f..a1270d6 100644 --- a/source/lexicalcast.cpp +++ b/source/lexicalcast.cpp @@ -119,7 +119,7 @@ char *int_to_str(T v, const Fmt &f, char *end) template string int_to_str(T v, const Fmt &f) { - unsigned size=max(f.get_width(), max(f.get_precision(), sizeof(T)*8+3)); + unsigned size=max(f.get_width(), max(f.get_precision(), sizeof(T)*8+3)); char *buf=new char[size]; string result(int_to_str(v, f, buf+size), buf+size); delete[] buf; diff --git a/source/utils.cpp b/source/utils.cpp index c2bafb9..675a2b1 100644 --- a/source/utils.cpp +++ b/source/utils.cpp @@ -139,13 +139,13 @@ vector split(const string &str, const string &sep, bool allow_empty) { vector result; - unsigned start=0; + string::size_type start=0; if(!allow_empty) start=str.find_first_not_of(sep); while(start