From eefd80e4118f349325f5b8f657275036d302a957 Mon Sep 17 00:00:00 2001 From: MacroModel <33865334+MacroModel@users.noreply.github.com> Date: Thu, 14 Nov 2024 00:58:08 +0800 Subject: [PATCH] fix --- include/fast_io_hosted/platforms/nt.h | 2 +- include/fast_io_hosted/timeutil/time.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/fast_io_hosted/platforms/nt.h b/include/fast_io_hosted/platforms/nt.h index 0b5d4704..ff250061 100644 --- a/include/fast_io_hosted/platforms/nt.h +++ b/include/fast_io_hosted/platforms/nt.h @@ -1447,7 +1447,7 @@ inline void nt_create_pipe(void **hReadPipe, void **hWritePipe) constexpr auto str1_size{sizeof(str1) / sizeof(char16_t) - 1}; curr_buffer= ::fast_io::freestanding::non_overlapped_copy_n(str1, str1_size, curr_buffer); curr_buffer = ::fast_io::pr_rsv_to_iterator_unchecked(curr_buffer, ::fast_io::mnp::hexupper(uniprocess)); - curr_buffer = ::fast_io::pr_rsv_to_iterator_unchecked(curr_buffer, u"."); + *curr_buffer++ = u'.'; constexpr ::std::uint_least32_t uuid_buffer_sz{16}; ::std::byte uuid_buffer[uuid_buffer_sz]; if (!::fast_io::win32::SystemFunction036(uuid_buffer, uuid_buffer_sz)) [[unlikely]] diff --git a/include/fast_io_hosted/timeutil/time.h b/include/fast_io_hosted/timeutil/time.h index 920763df..792ea27f 100644 --- a/include/fast_io_hosted/timeutil/time.h +++ b/include/fast_io_hosted/timeutil/time.h @@ -352,7 +352,6 @@ inline unix_timestamp win32_posix_clock_gettime_boottime_xp_impl() } } // namespace win32::details -#endif namespace win32::nt::details { @@ -382,7 +381,8 @@ inline unix_timestamp nt_posix_clock_gettime_boottime_impl() noexcept static_cast<::std::uint_least64_t>(md * static_cast<::std::uint_least64_t>(val))}; } -} +} // namespace win32::nt::details +#endif #ifdef __MSDOS__ namespace details