OSDN Git Service

fix a signed/unsigned comparison warning
authorGeorge Burgess IV <gbiv@google.com>
Thu, 22 Jun 2017 21:23:54 +0000 (14:23 -0700)
committerGeorge Burgess <gbiv@google.com>
Wed, 5 Jul 2017 00:38:45 +0000 (00:38 +0000)
commit9494b73677e39a5dc67ee8e64c9cc944624ebffd
tree3b16b128ed5fe4427aad3dbbbe61e8b0496d3f23
parenta2d9c1e4d7e9eedc54bde4817ab3cc0a2256d179
fix a signed/unsigned comparison warning

The comparison was farther down; we'd compare a size_t vector index
with an int index.

Complaint from clang:

vr_hwc.cpp:152:11: warning: comparison of integers of different signs:
'size_t' (aka 'unsigned long') and 'int'

Bug: None
Test: mma shows no more warning.
Change-Id: Icabb5d4bb3c554ffe01a25af975a05bd58f336a1
services/vr/hardware_composer/impl/vr_hwc.cpp