fix value conversion for hex values

This commit is contained in:
Simon Thornington 2021-04-10 13:58:32 -04:00
parent 2f37678b61
commit ad2a781681
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ class LiteScopeAnalyzerDriver:
v <<= 4 if mx is not None else 1
m <<= 4 if mx is not None else 1
if c != "x":
v |= int(c)
v |= int(c, 16 if mx is not None else 2)
m |= 0xf if mx is not None else 0b1
value |= getattr(self, k + "_o")*v
mask |= getattr(self, k + "_m") & (getattr(self, k + "_o")*m)