Skip to content

Commit

Permalink
buffer impl: add cast for android compilation (#12583)
Browse files Browse the repository at this point in the history
Commit Message: add cast for android compilation
Risk Level: low using the expected type for the constructor as the static_cast type.
Testing: local build of envoy mobile for android. CI

Signed-off-by: Jose Nino <jnino@lyft.com>
  • Loading branch information
junr03 authored Aug 11, 2020
1 parent 573170b commit 689bd37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/common/buffer/buffer_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Slice : public SliceData {
// SliceData
absl::Span<uint8_t> getMutableData() override {
RELEASE_ASSERT(isMutable(), "Not allowed to call getMutableData if slice is immutable");
return {base_ + data_, reservable_ - data_};
return {base_ + data_, static_cast<absl::Span<uint8_t>::size_type>(reservable_ - data_)};
}

/**
Expand Down

0 comments on commit 689bd37

Please sign in to comment.