From 4477706f0642658f20409a330a61e49d7bebe270 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Tue, 22 Oct 2024 17:24:56 +0200 Subject: [PATCH] stream: trun off false-positive Xcode analysis warning --- include/stdex/stream.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/stdex/stream.hpp b/include/stdex/stream.hpp index cb5c81e9d..3c240cb04 100644 --- a/include/stdex/stream.hpp +++ b/include/stdex/stream.hpp @@ -1,4 +1,4 @@ -/* +/* SPDX-License-Identifier: MIT Copyright © 2023-2024 Amebis */ @@ -340,7 +340,7 @@ namespace stdex size_t readln_and_attach(_Inout_ std::basic_string& str) { bool initial = true; - T chr, previous = (T)0; + T chr = static_cast(0), previous = static_cast(0); do { read_array(&chr, sizeof(T), 1); if (!initial && !(previous == static_cast('\r') && chr == static_cast('\n')))