From 803ed2903b90e69af8644b34637994ec74e562af Mon Sep 17 00:00:00 2001 From: Stephen Hines Date: Wed, 16 Nov 2016 11:34:09 -0800 Subject: [PATCH] Fix build break: Make sure we use use unsigned comparisons. The original CL was comparing signed and unsigned values, which triggers a warning/error diagnostic. Test: Built bullhead successfully. Change-Id: I5fd6736690f9697b2b6c800f98a7ce3a6ada9c35 --- include/binder/Parcel.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/binder/Parcel.h b/include/binder/Parcel.h index bd2213d926..b0d53ef5c8 100644 --- a/include/binder/Parcel.h +++ b/include/binder/Parcel.h @@ -681,13 +681,13 @@ status_t Parcel::unsafeReadTypedVector( return UNEXPECTED_NULL; } - if (val->max_size() < size) { + if (val->max_size() < static_cast(size)) { return NO_MEMORY; } val->resize(static_cast(size)); - if (val->size() < size) { + if (val->size() < static_cast(size)) { return NO_MEMORY; } -- 2.11.0