From c9cd44ceee7bfcd9a722781530b76832eb84caed Mon Sep 17 00:00:00 2001 From: Martchus Date: Thu, 22 Feb 2024 19:41:29 +0100 Subject: [PATCH] Apply clang-format --- conversion/binaryconversionprivate.h | 4 ++-- conversion/stringconversion.h | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/conversion/binaryconversionprivate.h b/conversion/binaryconversionprivate.h index 44408fd..01eed83 100644 --- a/conversion/binaryconversionprivate.h +++ b/conversion/binaryconversionprivate.h @@ -168,11 +168,11 @@ CPP_UTILITIES_EXPORT inline void getBytes24(std::uint32_t value, char *outputbuf #if CONVERSION_UTILITIES_BINARY_CONVERSION_INTERNAL == 0 outputbuffer[0] = static_cast((value >> 16) & 0xFF); outputbuffer[1] = static_cast((value >> 8) & 0xFF); - outputbuffer[2] = static_cast((value) & 0xFF); + outputbuffer[2] = static_cast((value)&0xFF); #else outputbuffer[2] = static_cast((value >> 16) & 0xFF); outputbuffer[1] = static_cast((value >> 8) & 0xFF); - outputbuffer[0] = static_cast((value) & 0xFF); + outputbuffer[0] = static_cast((value)&0xFF); #endif } diff --git a/conversion/stringconversion.h b/conversion/stringconversion.h index f2f4885..53a1d76 100644 --- a/conversion/stringconversion.h +++ b/conversion/stringconversion.h @@ -429,7 +429,8 @@ StringType numberToString(IntegralType number, BaseType base = 10) auto res = StringType(resSize, typename StringType::value_type()); auto resIter = res.end(); do { - *(--resIter) = digitToChar(static_cast(number % static_cast(base))); + *(--resIter) + = digitToChar(static_cast(number % static_cast(base))); number /= static_cast(base); } while (number); return res; @@ -457,7 +458,8 @@ StringType numberToString(IntegralType number, BaseType base = 10) auto res = StringType(resSize, typename StringType::value_type()); auto resIter = res.end(); do { - *(--resIter) = digitToChar(static_cast(number % static_cast(base))); + *(--resIter) + = digitToChar(static_cast(number % static_cast(base))); number /= static_cast(base); } while (number); if (negative) {