OSDN Git Service

For Win32, don't cast ssize_t while printing
authorPirama Arumuga Nainar <pirama@google.com>
Fri, 11 May 2018 22:52:49 +0000 (15:52 -0700)
committerPirama Arumuga Nainar <pirama@google.com>
Fri, 11 May 2018 23:22:10 +0000 (23:22 +0000)
commitdc36bb6dea837608c29c177a7ea8cf46b6a0cd53
treeb2665fb535d0583511349cdf5d00052a705dd2ab
parentef43ea3238e55ddca0658059a05c7a53db50d621
For Win32, don't cast ssize_t while printing

Bug: http://b/69933068

This is a partial revert of
https://android-review.googlesource.com/c/platform/frameworks/base/+/109433
so we can use Clang for windows cross compilation.

Clang does not allow a cast to 'signed size_t' and both Clang and
current MinGW accept a ssize_t to the '%zd' format specifier.

Test: m native-host, m native-host-cross with both MinGW and Clang
Change-Id: I5366622b91be1433f6c533c55a9ae429b57c7a27
tools/aapt/ResourceTable.cpp
tools/aapt/StringPool.cpp
tools/aapt/XMLNode.cpp