From f25fb44f43e37376270bdf3e92be116970b81486 Mon Sep 17 00:00:00 2001 From: Adam Szmigin Date: Sat, 12 Aug 2023 15:39:13 +0100 Subject: [PATCH] String rendering fix --- .../djinterop/engine/v2/overview_waveform_data_blob.hpp | 7 ++++--- include/djinterop/pad_color.hpp | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/include/djinterop/engine/v2/overview_waveform_data_blob.hpp b/include/djinterop/engine/v2/overview_waveform_data_blob.hpp index e849a62..7c4c445 100644 --- a/include/djinterop/engine/v2/overview_waveform_data_blob.hpp +++ b/include/djinterop/engine/v2/overview_waveform_data_blob.hpp @@ -61,9 +61,10 @@ struct DJINTEROP_PUBLIC overview_waveform_point friend std::ostream& operator<<( std::ostream& os, const overview_waveform_point& obj) noexcept { - os << "overview_waveform_point{low_value=" << obj.low_value - << ", mid_value=" << obj.mid_value - << ", high_value=" << obj.high_value << "}"; + os << "overview_waveform_point{low_value=" + << static_cast(obj.low_value) + << ", mid_value=" << static_cast(obj.mid_value) + << ", high_value=" << static_cast(obj.high_value) << "}"; return os; } }; diff --git a/include/djinterop/pad_color.hpp b/include/djinterop/pad_color.hpp index 9c1ce3d..94bbd2c 100644 --- a/include/djinterop/pad_color.hpp +++ b/include/djinterop/pad_color.hpp @@ -78,7 +78,7 @@ inline bool operator!=(const pad_color& x, const pad_color& y) inline std::ostream& operator<<(std::ostream& o, const djinterop::pad_color& v) { o << "pad_color{r=" << (int)v.r << ", g=" << (int)v.g << ", b=" << (int)v.b - << ", a=" << (int)v.a; + << ", a=" << (int)v.a << "}"; return o; } } // namespace djinterop