X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/5265c07843024e4257ac46337ec286cf31b06918..c70f9935358d885d063ed0112827c5d8506d1f9d:/Resource.cpp diff --git a/Resource.cpp b/Resource.cpp index a8ac2ec..5855b56 100644 --- a/Resource.cpp +++ b/Resource.cpp @@ -542,11 +542,11 @@ static bool applyFileOverlay(Bundle *bundle, DefaultKeyedVector > baseFiles = baseGroup->getFiles(); for (size_t i=0; i < baseFiles.size(); i++) { - printf("baseFile %ld has flavor %s\n", i, + printf("baseFile %d has flavor %s\n", i, baseFiles.keyAt(i).toString().string()); } for (size_t i=0; i < overlayFiles.size(); i++) { - printf("overlayFile %ld has flavor %s\n", i, + printf("overlayFile %d has flavor %s\n", i, overlayFiles.keyAt(i).toString().string()); } } @@ -560,7 +560,7 @@ static bool applyFileOverlay(Bundle *bundle, keyAt(overlayGroupIndex)); if(baseFileIndex < UNKNOWN_ERROR) { if (bundle->getVerbose()) { - printf("found a match (%ld) for overlay file %s, for flavor %s\n", + printf("found a match (%d) for overlay file %s, for flavor %s\n", baseFileIndex, overlayGroup->getLeaf().string(), overlayFiles.keyAt(overlayGroupIndex).toString().string()); @@ -775,7 +775,7 @@ status_t buildResources(Bundle* bundle, const sp& assets) * allow UTF-8 to be used. */ if (!bundle->getWantUTF16() - && bundle->isUTF8Available()) { + && bundle->isMinSdkAtLeast(SDK_FROYO)) { xmlFlags |= XML_COMPILE_UTF8; }