commit | a119a69b066f7bb03d51665a35bef17cecacbe95 | [log] [tgz] |
---|---|---|
author | Ryan Prichard <rprichard@google.com> | Fri Sep 29 03:22:22 2023 -0700 |
committer | Ryan Prichard <rprichard@google.com> | Fri Sep 29 03:27:59 2023 -0700 |
tree | 8fae3c08414f2c00eae9c45b0a6c2f45102afa81 | |
parent | aae12bb228d3dcbe6e436d1bc52263f26ddef57f [diff] |
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 Change-Id: I50cc5354b6205b62918157b69df6cf1aa7bad6cc