From b7c43108bdc7dcb77dee7488c4ca0b3ffb53b26c Mon Sep 17 00:00:00 2001 From: xorstream Date: Sat, 23 Jan 2016 10:45:58 +1100 Subject: [PATCH] Started fixing uc_mode flag usage --- uc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uc.c b/uc.c index ee7d5549..195f626d 100644 --- a/uc.c +++ b/uc.c @@ -185,7 +185,7 @@ uc_err uc_open(uc_arch arch, uc_mode mode, uc_engine **result) // verify mode // TODO: support Big endian, MCLASS & V8 - if (mode & (~(UC_MODE_ARM | UC_MODE_THUMB | UC_MODE_BIG_ENDIAN | UC_MODE_LITTLE_ENDIAN))) { + if (mode & ~UC_MODE_ARM_MASK) { free(uc); return UC_ERR_MODE; }