X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Flexicalcast.cpp;fp=source%2Flexicalcast.cpp;h=a1270d6d6074d6b4e68d817fe940e1fd9b1da2e2;hp=9ba642f2ae48bebe826c226ef98b8604e4c49114;hb=9573cffd8df40a81cd7c338d63d07e4965eb3854;hpb=a0a5c796a6ec11a13c49912672a82bf1857bbc71 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;