Merge "use negative mask"
am: 4e427f0aab
* commit '4e427f0aabf89b118b9a8f2b128f71a058755ba7':
use negative mask
diff --git a/cmds/installd/commands.cpp b/cmds/installd/commands.cpp
index d3efb7c..757290f 100644
--- a/cmds/installd/commands.cpp
+++ b/cmds/installd/commands.cpp
@@ -1066,7 +1066,7 @@
bool boot_complete = (dexopt_flags & DEXOPT_BOOTCOMPLETE) != 0;
bool use_jit = (dexopt_flags & DEXOPT_USEJIT) != 0;
- if ((dexopt_flags & DEXOPT_MASK) != 0) {
+ if ((dexopt_flags & ~DEXOPT_MASK) != 0) {
LOG_FATAL("dexopt flags contains unknown fields\n");
}