summaryrefslogtreecommitdiffstats
path: root/libutils
diff options
context:
space:
mode:
authorJames Hawkins <jhawkins@google.com>2016-03-01 11:21:53 -0800
committerJames Hawkins <jhawkins@google.com>2016-03-01 11:21:53 -0800
commitb898075f307246743676a16f2204ecde35c65146 (patch)
tree4a7f64810df70b63ec9c945b9de9513aed851675 /libutils
parentc625acf21701af0f8a57a443a16240ea6e499774 (diff)
downloadcore-b898075f307246743676a16f2204ecde35c65146.tar.gz
core-b898075f307246743676a16f2204ecde35c65146.tar.bz2
core-b898075f307246743676a16f2204ecde35c65146.zip
system/core/lib[c]utils: Fix signedness comparison warnings.
* Store the output of a length variable in size_t. * Annotate unsigned constant values as such. Bug: 27384813 Change-Id: I8504c0a8f5840d4d42e5c0df797a4e5d02d13eb9
Diffstat (limited to 'libutils')
-rw-r--r--libutils/tests/Vector_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libutils/tests/Vector_test.cpp b/libutils/tests/Vector_test.cpp
index d9b32f9e9..24ecf86a0 100644
--- a/libutils/tests/Vector_test.cpp
+++ b/libutils/tests/Vector_test.cpp
@@ -89,9 +89,9 @@ TEST_F(VectorTest, SetCapacity_ShrinkBelowSize) {
vector.add(4);
vector.setCapacity(8);
- ASSERT_EQ(8, vector.capacity());
+ ASSERT_EQ(8U, vector.capacity());
vector.setCapacity(2);
- ASSERT_EQ(8, vector.capacity());
+ ASSERT_EQ(8U, vector.capacity());
}
// NOTE: All of the tests below are useless because of the "TODO" above.