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')))