Skip to content

Commit

Permalink
Clean up ArrayPtr casts
Browse files Browse the repository at this point in the history
  • Loading branch information
fhanau committed Jul 31, 2024
1 parent 68b4a98 commit ec3dcac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/workerd/api/streams/compression.c++
Original file line number Diff line number Diff line change
Expand Up @@ -255,15 +255,15 @@ public:
// There might still be data in the output buffer remaining to read.
if (output.empty()) return size_t(0);
return tryReadInternal(
kj::ArrayPtr<kj::byte>(reinterpret_cast<kj::byte*>(buffer), maxBytes),
kj::arrayPtr(reinterpret_cast<kj::byte*>(buffer), maxBytes),
minBytes);
}
KJ_CASE_ONEOF(exception, kj::Exception) {
return kj::cp(exception);
}
KJ_CASE_ONEOF(open, Open) {
return tryReadInternal(
kj::ArrayPtr<kj::byte>(reinterpret_cast<kj::byte*>(buffer), maxBytes),
kj::arrayPtr(reinterpret_cast<kj::byte*>(buffer), maxBytes),
minBytes);
}
}
Expand Down

0 comments on commit ec3dcac

Please sign in to comment.