Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 18efdb70 authored by Ryan Prichard's avatar Ryan Prichard Committed by Android Build Cherrypicker Worker
Browse files

TFLite: Accommodate change in std::span size type

The WIP version of std::span in external/libcxx uses a ptrdiff_t size,
but the finalized C++20 std::span uses a size_t size instead. Comparing
the size_t size() against a signed integer causes a
-Werror,-Wsign-compare build error. Cast the size() expression so that
the code compiles with both the old and the new libc++.

Bug: 175635923
Test: m MODULES-IN-frameworks-native
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:a119a69b066f7bb03d51665a35bef17cecacbe95)
Merged-In: I50cc5354b6205b62918157b69df6cf1aa7bad6cc
Change-Id: I50cc5354b6205b62918157b69df6cf1aa7bad6cc
parent 91600505
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment