From 6b95d0971954f7c9306e7a617ce5811caba3720a Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Sat, 4 May 2024 14:53:15 -0400 Subject: [PATCH] xo-unit: bugfix: promote representation accurately in xquantity --- include/xo/unit/xquantity.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/xo/unit/xquantity.hpp b/include/xo/unit/xquantity.hpp index cf22e13c..c0d3df78 100644 --- a/include/xo/unit/xquantity.hpp +++ b/include/xo/unit/xquantity.hpp @@ -156,7 +156,7 @@ namespace xo { return xquantity(r_scale, x.unit_.template to_repr()); } else { /* units don't match! */ - return xquantity(std::numeric_limits::quiet_NaN(), + return xquantity(std::numeric_limits::quiet_NaN(), x.unit_.template to_repr()); } } @@ -183,7 +183,7 @@ namespace xo { return xquantity(r_scale, x.unit_.template to_repr()); } else { /* units don't match! */ - return xquantity(std::numeric_limits::quiet_NaN(), + return xquantity(std::numeric_limits::quiet_NaN(), x.unit_.template to_repr()); } }