Skip to content

Commit

Permalink
Fix linker error.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ludwig committed Jun 27, 2024
1 parent 01bca25 commit f00eba8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/vibe/http/common.d
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ final class ChunkedOutputStream : OutputStream {
}
}

size_t write(scope const ubyte[] bytes_, IOMode mode)
size_t write(scope const(ubyte)[] bytes_, IOMode mode)
{
assert(!m_finalized);
const(ubyte)[] bytes = bytes_;
Expand Down
2 changes: 1 addition & 1 deletion source/vibe/http/internal/http2/exchange.d
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ private final class HeaderOutputStream : OutputStream {
return bytes.length;
}
/// DITTO
size_t write(scope const(ubyte[]) bytes, IOMode)
size_t write(scope const(ubyte)[] bytes, IOMode)
{
() @trusted { m_destination.put(cast(string)bytes); } ();
return bytes.length;
Expand Down
4 changes: 3 additions & 1 deletion source/vibe/http/websockets.d
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ final class OutgoingWebSocketMessage : OutputStream {
m_rng = rng;
}

size_t write(scope const ubyte[] bytes, IOMode mode)
size_t write(scope const(ubyte)[] bytes, IOMode mode)
{
assert(!m_finalized);

Expand All @@ -923,6 +923,8 @@ final class OutgoingWebSocketMessage : OutputStream {
return bytes.length;
}

alias write = OutputStream.write;

void flush()
{
assert(!m_finalized);
Expand Down

0 comments on commit f00eba8

Please sign in to comment.