Fix warnings

This commit is contained in:
Victor Zverovich
2019-08-11 08:44:12 -07:00
parent 4e99e09bb3
commit c1e97392be
5 changed files with 20 additions and 17 deletions
+1 -1
View File
@@ -520,7 +520,7 @@ struct chrono_formatter {
std::chrono::duration<Rep, Period> d)
: context(ctx), out(o), val(d.count()), negative(false) {
if (d.count() < 0) {
val = -val;
val = 0 - val;
negative = true;
}