From 53caf1c7a6bf887edd35fa7f5620b27632899e55 Mon Sep 17 00:00:00 2001 From: Robert Grosse Date: Fri, 7 Oct 2016 10:42:19 -0700 Subject: [PATCH] fix bool arrays --- enjarify/jvm/writeir.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/enjarify/jvm/writeir.py b/enjarify/jvm/writeir.py index 862e055..92c474e 100644 --- a/enjarify/jvm/writeir.py +++ b/enjarify/jvm/writeir.py @@ -33,8 +33,8 @@ _newArrayCodes = {('['+t).encode(): v for t, v in zip('ZCFDBSIJ', range(4, 12))} _arrStoreOps = {t.encode(): v for t, v in zip('IJFD BCS', range(IASTORE, SASTORE+1))} _arrLoadOps = {t.encode(): v for t, v in zip('IJFD BCS', range(IALOAD, SALOAD+1))} -_arrStoreOps[u'Z'] = BASTORE -_arrLoadOps[u'Z'] = BALOAD +_arrStoreOps[b'Z'] = BASTORE +_arrLoadOps[b'Z'] = BALOAD # For generating IR instructions corresponding to a single Dalvik instruction class IRBlock: