summaryrefslogtreecommitdiff
path: root/zen/format_unit.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2015-10-02 14:52:04 +0200
committerDaniel Wilhelm <daniel@wili.li>2015-10-02 14:52:04 +0200
commit1845c028b8cb8496d1d78f0da738120e1c31401a (patch)
treeadf9fb436aea09be367aef8ed3b6cdbf6a46e34c /zen/format_unit.h
parent6.7 (diff)
downloadFreeFileSync-1845c028b8cb8496d1d78f0da738120e1c31401a.tar.gz
FreeFileSync-1845c028b8cb8496d1d78f0da738120e1c31401a.tar.bz2
FreeFileSync-1845c028b8cb8496d1d78f0da738120e1c31401a.zip
6.8
Diffstat (limited to 'zen/format_unit.h')
-rw-r--r--zen/format_unit.h10
1 files changed, 5 insertions, 5 deletions
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 <string>
-#include <zen/int64.h>
-#include <zen/string_tools.h>
+#include <cstdint>
+#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 <class NumberType> inline
std::wstring toGuiString(NumberType number)
{
- //assert_static(IsInteger<NumberType>::value); -> doesn't work for UInt64
+ assert_static(IsInteger<NumberType>::value);
return ffs_Impl::includeNumberSeparator(zen::numberTo<std::wstring>(number));
}
}
bgstack15