From a983b7177b1dafa15806953c3d646f1186b4bbdb Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Sat, 6 Jun 2026 15:46:29 +0100 Subject: [PATCH] Quick fixes --- include/etl/basic_format_spec.h | 4 ++-- include/etl/private/to_string_helper.h | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/etl/basic_format_spec.h b/include/etl/basic_format_spec.h index ba7dc2bf..dc198f54 100644 --- a/include/etl/basic_format_spec.h +++ b/include/etl/basic_format_spec.h @@ -248,7 +248,7 @@ namespace etl left_justified_ = false; boolalpha_ = false; show_base_ = false; - scientific = false; + scientific_ = false; fill_ = typename TString::value_type(' '); } @@ -597,7 +597,7 @@ namespace etl { return (lhs.base_ == rhs.base_) && (lhs.width_ == rhs.width_) && (lhs.precision_ == rhs.precision_) && (lhs.upper_case_ == rhs.upper_case_) && (lhs.left_justified_ == rhs.left_justified_) && (lhs.boolalpha_ == rhs.boolalpha_) && (lhs.show_base_ == rhs.show_base_) - && (lhs.fill_ == rhs.fill_); + && (lhs.fill_ == rhs.fill_) && (lhs.scientific_ == rhs.scientific_); } //*************************************************************************** diff --git a/include/etl/private/to_string_helper.h b/include/etl/private/to_string_helper.h index 6c22590d..c1b630ba 100644 --- a/include/etl/private/to_string_helper.h +++ b/include/etl/private/to_string_helper.h @@ -422,8 +422,7 @@ namespace etl template void add_floating_point(const T value, TIString& str, const etl::basic_format_spec& format, const bool append) { - typedef typename TIString::iterator iterator; - typedef typename TIString::value_type type; + typedef typename TIString::iterator iterator; if (!append) {