Skip to content

Commit 2528274

Browse files
author
rocky
committed
Change ref accumulation of readArray objects
1 parent e916c9e commit 2528274

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

xdis/unmarshal.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,10 @@ def t_graal_readArray(self, save_ref: bool, bytes_for_s: bool) -> tuple:
269269
print(f"XXX Whoah {marshal_type}")
270270
ret = tuple()
271271
if save_ref:
272-
self.intern_objects.append(ret)
272+
if isinstance(ret, tuple):
273+
self.intern_objects += list(ret)
274+
else:
275+
self.intern_objects.append(ret)
273276
return ret
274277

275278
def graal_readBigInteger(self):

0 commit comments

Comments
 (0)