Commit f1e717b6 authored by John Zhang's avatar John Zhang

fix: program breaks when hybrid type does not have length field, use llv.getlength() instead

parent d45c9fb9
......@@ -491,7 +491,7 @@ class LL2MuMapper:
hyb.length = mutype.mu_int64(llv.getlength())
_memarr = getattr(hyb, MuT._varfld)
for i in range(hyb.length):
for i in range(llv.getlength()):
_memarr[i] = self.map_value(llv.getitem(i))
return hyb
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment