26 lines
914 B
Diff
26 lines
914 B
Diff
|
From d82e1a108d3b3e3e7b8b019b47df9c4ed127723b Mon Sep 17 00:00:00 2001
|
||
|
From: Victor Zverovich <viz@fb.com>
|
||
|
Date: Wed, 13 Jul 2022 12:33:57 -0700
|
||
|
Subject: [PATCH] Make sure the correct fmod overload is called
|
||
|
|
||
|
---
|
||
|
include/fmt/chrono.h | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h
|
||
|
index 9b2aa74d..4a2c3a3d 100644
|
||
|
--- a/include/fmt/chrono.h
|
||
|
+++ b/include/fmt/chrono.h
|
||
|
@@ -1777,7 +1777,7 @@ struct chrono_formatter {
|
||
|
format_to(std::back_inserter(buf), runtime("{:.{}f}"),
|
||
|
std::fmod(val * static_cast<rep>(Period::num) /
|
||
|
static_cast<rep>(Period::den),
|
||
|
- 60),
|
||
|
+ static_cast<rep>(60)),
|
||
|
num_fractional_digits);
|
||
|
if (negative) *out++ = '-';
|
||
|
if (buf.size() < 2 || buf[1] == '.') *out++ = '0';
|
||
|
--
|
||
|
2.36.1
|
||
|
|