fmt/0001-Make-sure-the-correct-fmod-overload-is-called.patch
Jan Engelhardt 422272881a - Add 0001-Fix-large-shift-in-uint128_fallback.patch
0002-Use-FMT_USE_FLOAT128-instead-of-__SIZEOF_FLOAT128__.patch
  0001-Make-sure-the-correct-fmod-overload-is-called.patch

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/fmt?expand=0&rev=47
2022-07-13 22:13:51 +00:00

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