summaryrefslogtreecommitdiff
path: root/tools/aapt/Resource.cpp
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2016-01-15 12:16:06 -0800
committerDan Albert <danalbert@google.com>2016-01-15 12:16:06 -0800
commited811eeaea83453df91fa564287cd2f1b7cb705f (patch)
treecdb34fd8c9a3e3b8eb1efb8e1f05f43f7dc945dd /tools/aapt/Resource.cpp
parentd736cba6e7f93a2e6df172a644e413f27a1dc939 (diff)
Make the appropriate cast to protect from mingw.
As the comment at the top of the file says: STATUST: mingw does seem to redefine UNKNOWN_ERROR from our enum value, so a cast is necessary. Bug: http://b/26523949 Change-Id: I9d86cafdc47bbb9ce0e967cdde9315babc083432
Diffstat (limited to 'tools/aapt/Resource.cpp')
-rw-r--r--tools/aapt/Resource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/aapt/Resource.cpp b/tools/aapt/Resource.cpp
index a4e5d3de69c1..1b30d362a716 100644
--- a/tools/aapt/Resource.cpp
+++ b/tools/aapt/Resource.cpp
@@ -2107,7 +2107,7 @@ static status_t writeResourceLoadedCallbackForLayoutClasses(
indentStr);
}
- return hasErrors ? UNKNOWN_ERROR : NO_ERROR;
+ return hasErrors ? STATUST(UNKNOWN_ERROR) : NO_ERROR;
}
static status_t writeResourceLoadedCallback(