Skip to content

Commit 70fec3e

Browse files
committed
Fix MSVC C4927 in parser read coroutines
1 parent e668218 commit 70fec3e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

include/boost/http/parser.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ read_header(Stream& stream)
528528
co_return {};
529529

530530
if(ec != condition::need_more_input)
531-
co_return {ec};
531+
co_return {std::error_code(ec)};
532532

533533
auto mbs = prepare();
534534

@@ -556,7 +556,7 @@ read(Stream& stream)
556556
co_return {};
557557

558558
if(ec && ec != condition::need_more_input)
559-
co_return {ec};
559+
co_return {std::error_code(ec)};
560560

561561
if(ec == condition::need_more_input)
562562
{
@@ -737,7 +737,7 @@ read(capy::ReadStream auto& stream, Sink&& sink)
737737
}
738738

739739
if(ec)
740-
co_return {ec};
740+
co_return {std::error_code(ec)};
741741
}
742742
}
743743

0 commit comments

Comments
 (0)