diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2018-05-14 11:22:57 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-05-14 11:22:57 -0700 |
commit | ea5cf9f31c64e93d6589216e10504abd4f7a1c30 (patch) | |
tree | 28b40a8ad60ef0a7ea81d88852eb543d4651c418 /tools/aapt/ResourceTable.cpp | |
parent | 24482c9f05c4d4bd0e1460c1732a02fbdc7f7d69 (diff) | |
parent | 466ada94fe8848da5637d2134a460291b5e00a22 (diff) |
Merge "For Win32, don't cast ssize_t while printing" am: aaf8d7aa2e
am: 466ada94fe
Change-Id: I39b73406a41ecc5396c39648f8e05e8a88e7aaee
Diffstat (limited to 'tools/aapt/ResourceTable.cpp')
-rw-r--r-- | tools/aapt/ResourceTable.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/tools/aapt/ResourceTable.cpp b/tools/aapt/ResourceTable.cpp index 734a5ab8aab4..d02f44edaa4c 100644 --- a/tools/aapt/ResourceTable.cpp +++ b/tools/aapt/ResourceTable.cpp @@ -18,13 +18,10 @@ #include <utils/TypeHelpers.h> #include <stdarg.h> -// SSIZE: mingw does not have signed size_t == ssize_t. // STATUST: mingw does seem to redefine UNKNOWN_ERROR from our enum value, so a cast is necessary. #if !defined(_WIN32) -# define SSIZE(x) x # define STATUST(x) x #else -# define SSIZE(x) (signed size_t)x # define STATUST(x) (status_t)x #endif @@ -3040,7 +3037,7 @@ status_t ResourceTable::flatten(Bundle* bundle, const sp<const ResourceFilter>& sp<AaptFile> strFile = p->getTypeStringsData(); ssize_t amt = data->writeData(strFile->getData(), strFile->getSize()); if (kPrintStringMetrics) { - fprintf(stderr, "**** type strings: %zd\n", SSIZE(amt)); + fprintf(stderr, "**** type strings: %zd\n", amt); } strAmt += amt; if (amt < 0) { @@ -3050,7 +3047,7 @@ status_t ResourceTable::flatten(Bundle* bundle, const sp<const ResourceFilter>& strFile = p->getKeyStringsData(); amt = data->writeData(strFile->getData(), strFile->getSize()); if (kPrintStringMetrics) { - fprintf(stderr, "**** key strings: %zd\n", SSIZE(amt)); + fprintf(stderr, "**** key strings: %zd\n", amt); } strAmt += amt; if (amt < 0) { @@ -3322,8 +3319,8 @@ status_t ResourceTable::flatten(Bundle* bundle, const sp<const ResourceFilter>& ssize_t amt = (dest->getSize()-strStart); strAmt += amt; if (kPrintStringMetrics) { - fprintf(stderr, "**** value strings: %zd\n", SSIZE(amt)); - fprintf(stderr, "**** total strings: %zd\n", SSIZE(strAmt)); + fprintf(stderr, "**** value strings: %zd\n", amt); + fprintf(stderr, "**** total strings: %zd\n", amt); } for (pi=0; pi<flatPackages.size(); pi++) { |