OSDN Git Service

AAPT2: Fix compiler error in 32-bit host test
authorDan Willemsen <dwillemsen@google.com>
Tue, 22 Dec 2015 21:01:05 +0000 (13:01 -0800)
committerDan Willemsen <dwillemsen@google.com>
Tue, 22 Dec 2015 21:44:56 +0000 (13:44 -0800)
commit1b1f1b14eef5f73a82c1bb7cefd63ded5a9f6ebb
treeb4678b62f31f924565d2abbca193452a8db5e7ba
parentc1f9e7c4875e791e108c79382508aab8d171f25f
AAPT2: Fix compiler error in 32-bit host test

We now default host native tests to build both 32-bit and 64-bit
versions.

The 32-bit version of libaapt2_test was broken because it was comparing
an unsigned int to the result from std::count(std::vector), which is a
signed int. The 64-bit version compiled fine, since
std::count(std::vector) returns a long.

Change-Id: I786fcd8a54d9f78b76b19ef82ab8dda6f5c42197
tools/aapt2/compile/XmlIdCollector_test.cpp