diff --git a/Lib/packTab/__init__.py b/Lib/packTab/__init__.py index aa8da80..6932f63 100644 --- a/Lib/packTab/__init__.py +++ b/Lib/packTab/__init__.py @@ -578,7 +578,7 @@ def genCode(self, code, name=None, var="u", language="c"): if unitBits >= 8: if start: index = "%s+%s" % (start, language.as_usize(index)) - expr = "%s[%s]" % (arrName, index) + expr = "unsafe { *(%s.get_unchecked(%s)) }" % (arrName, index) else: shift1 = int(round(log2(8 // unitBits))) mask1 = (8 // unitBits) - 1