From 803c7c807969bea1f1c50f348832f5b60ad05d8e Mon Sep 17 00:00:00 2001 From: Adam Lesinski Date: Wed, 6 Apr 2016 16:09:43 -0700 Subject: AAPT2: Enable windows build and make sure it builds Mingw32 4.8 is kind of picky with macros and some complicated template stuff. Luckily there was another way to represent the SFINAE code that works on all platforms. Yay! Change-Id: Idc2e38f47bfdc57b394550bfa0f53cc0b825df25 --- tools/aapt2/java/JavaClassGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/aapt2/java/JavaClassGenerator.cpp') diff --git a/tools/aapt2/java/JavaClassGenerator.cpp b/tools/aapt2/java/JavaClassGenerator.cpp index 092bab241bba..32b8600358b8 100644 --- a/tools/aapt2/java/JavaClassGenerator.cpp +++ b/tools/aapt2/java/JavaClassGenerator.cpp @@ -318,7 +318,7 @@ void JavaClassGenerator::addMembersToStyleableClass(const StringPiece16& package } std::unique_ptr indexMember = util::make_unique( - sortedAttributes[i].fieldName, i); + sortedAttributes[i].fieldName, static_cast(i)); AnnotationProcessor* attrProcessor = indexMember->getCommentBuilder(); -- cgit v1.2.3