diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-06-21 20:53:08 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-06-21 20:53:08 +0900 |
| commit | 1adef4db0ce26d9943a8a7d1a0f266455c1902b7 (patch) | |
| tree | 24756797adfa9f3aa5d4c80b2182573f7c23ff4c /src/util.cc | |
| parent | 318c804504e32b7a0bbdbb35336d2e918000d80a (diff) | |
Fix compile warning with Mingw64 x86 build
Diffstat (limited to 'src/util.cc')
| -rw-r--r-- | src/util.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util.cc b/src/util.cc index b94be42d..5e42389d 100644 --- a/src/util.cc +++ b/src/util.cc @@ -1405,7 +1405,8 @@ std::string abbrevSize(int64_t size) int64_t t = size; size_t uidx = 0; int r = 0; - while(t >= 1_k && uidx+1 < sizeof(UNITS)/sizeof(UNITS[0])) { + while(t >= static_cast<int64_t>(1_k) && + uidx + 1 < sizeof(UNITS) / sizeof(UNITS[0])) { lldiv_t d = lldiv(t, 1_k); t = d.quot; r = d.rem; |
