From 1845c028b8cb8496d1d78f0da738120e1c31401a Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 2 Oct 2015 14:52:04 +0200 Subject: 6.8 --- zen/format_unit.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'zen/format_unit.h') diff --git a/zen/format_unit.h b/zen/format_unit.h index e3e2d107..237b9f04 100644 --- a/zen/format_unit.h +++ b/zen/format_unit.h @@ -8,15 +8,15 @@ #define FMT_UNIT_8702184019487324 #include -#include -#include +#include +#include "string_tools.h" namespace zen { -std::wstring filesizeToShortString(Int64 filesize); +std::wstring filesizeToShortString(std::int64_t filesize); std::wstring remainingTimeToString(double timeInSec); std::wstring fractionToString(double fraction); //within [0, 1] -std::wstring utcToLocalTimeString(Int64 utcTime); //like Windows Explorer would... +std::wstring utcToLocalTimeString(std::int64_t utcTime); //like Windows Explorer would... std::wstring formatThreeDigitPrecision(double value); //= *at least* three digits @@ -44,7 +44,7 @@ std::wstring includeNumberSeparator(const std::wstring& number); template inline std::wstring toGuiString(NumberType number) { - //assert_static(IsInteger::value); -> doesn't work for UInt64 + assert_static(IsInteger::value); return ffs_Impl::includeNumberSeparator(zen::numberTo(number)); } } -- cgit