From daf57969b21c1155a7d4d86a229922e131a201a8 Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Sun, 9 Aug 2020 23:34:30 +0100 Subject: [PATCH] compiler: Do not expand strings into TInt(8)s in array() --- artiq/compiler/transforms/inferencer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/compiler/transforms/inferencer.py b/artiq/compiler/transforms/inferencer.py index e5cbc561b..e2be2c7df 100644 --- a/artiq/compiler/transforms/inferencer.py +++ b/artiq/compiler/transforms/inferencer.py @@ -888,7 +888,7 @@ class Inferencer(algorithm.Visitor): break if types.is_var(elt): return # undetermined yet - if not builtins.is_iterable(elt): + if not builtins.is_iterable(elt) or builtins.is_str(elt): break num_dims += 1 elt = builtins.get_iterable_elt(elt)