diff --git a/artiq/compiler/embedding.py b/artiq/compiler/embedding.py index f854686f8..233d2b8fb 100644 --- a/artiq/compiler/embedding.py +++ b/artiq/compiler/embedding.py @@ -310,7 +310,9 @@ class ASTSynthesizer: if len(value) > 0: v = value[0] is_T = True - if isinstance(v, int): + if isinstance(v, bool): + is_T = False + elif isinstance(v, int): T = int elif isinstance(v, float): T = float