mirror of
https://github.com/m-labs/artiq.git
synced 2025-01-24 01:18:12 +08:00
compiler: fix bool list inferred as int list
This commit is contained in:
parent
8b5d7d06e9
commit
a98bccb2bb
@ -213,7 +213,9 @@ class ASTSynthesizer:
|
|||||||
if len(value) > 0:
|
if len(value) > 0:
|
||||||
v = value[0]
|
v = value[0]
|
||||||
is_T = True
|
is_T = True
|
||||||
if isinstance(v, int):
|
if isinstance(v, bool):
|
||||||
|
is_T = False
|
||||||
|
elif isinstance(v, int):
|
||||||
T = int
|
T = int
|
||||||
elif isinstance(v, float):
|
elif isinstance(v, float):
|
||||||
T = float
|
T = float
|
||||||
|
Loading…
Reference in New Issue
Block a user