diff --git a/include/stdex/stream.hpp b/include/stdex/stream.hpp index 651006956..b7e20b42b 100644 --- a/include/stdex/stream.hpp +++ b/include/stdex/stream.hpp @@ -479,8 +479,9 @@ namespace stdex return *this; data.reserve(num_chars); for (;;) { - T buf[0x400]; - uint32_t num_read = static_cast(read_array(buf, sizeof(T), std::min(num_chars, _countof(buf)))); + constexpr uint32_t buf_chars = 0x400; + T buf[buf_chars]; + uint32_t num_read = static_cast(read_array(buf, sizeof(T), std::min(num_chars, buf_chars))); data.append(buf, num_read); num_chars -= num_read; if (!num_chars || !ok()) diff --git a/include/stdex/uuid.hpp b/include/stdex/uuid.hpp index ca8040116..78c50317e 100644 --- a/include/stdex/uuid.hpp +++ b/include/stdex/uuid.hpp @@ -1,4 +1,4 @@ -/* +/* SPDX-License-Identifier: MIT Copyright © 2016-2024 Amebis */