Skip to content

Commit 0077e6b

Browse files
authored
Merge pull request #621 from OpenVicProject/fix_specialization_after_instantiation
Fix fp formatting specialization after instantiation
2 parents 5029642 + 21f5986 commit 0077e6b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/openvic-simulation/types/fixed_point/FixedPoint.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,11 @@ namespace OpenVic {
192192
#ifdef DEV_ENABLED
193193
if (!std::is_constant_evaluated()) {
194194
if (OV_unlikely(value < ONE)) {
195-
spdlog::warn_s("Fixed point {} < 1, truncation will result in zero, this may be a bug.", *this);
195+
spdlog::warn_s(
196+
"Fixed point < 1, truncation will result in zero, this may be a bug. raw_value: {} as float: {}",
197+
get_raw_value(),
198+
static_cast<float>(*this)
199+
);
196200
}
197201
}
198202
#endif

0 commit comments

Comments
 (0)