Skip to content

Commit

Permalink
Fix sanitizer failures that don't appear for vanilla [a|m|t]san tests.
Browse files Browse the repository at this point in the history
JNI Bind is internally exercised with sanitizers, but somehow CI flagged this retroactively but not under regular testing (presumably flags differ somewhere in a CI config).

PiperOrigin-RevId: 582833429
  • Loading branch information
jwhpryor authored and copybara-github committed Nov 16, 2023
1 parent 2d91cd1 commit 344c784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion implementation/array_view.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace jni {

template <typename T>
struct ArrayViewHelper {
const T& val_;
const T val_;
operator T() const { return val_; }

ArrayViewHelper(const T& val) : val_(val) {}
Expand Down

0 comments on commit 344c784

Please sign in to comment.