From cad5933709ce4ec5a188a08b63b161c2a8f296e9 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 2 Dec 2014 15:53:41 +0800 Subject: [PATCH] transforms/inline: do not writeback bool --- artiq/transforms/inline.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/artiq/transforms/inline.py b/artiq/transforms/inline.py index 98851a360..afb5898cd 100644 --- a/artiq/transforms/inline.py +++ b/artiq/transforms/inline.py @@ -453,7 +453,8 @@ def get_attr_writeback(attribute_namespace, rpc_mapper, loc_node): if hasattr(attr_info.obj, attr): val = getattr(attr_info.obj, attr) if (not isinstance(val, int) - or isinstance(val, core_language.int64)): + or isinstance(val, core_language.int64) + or isinstance(val, bool)): continue #