forked from M-Labs/artiq
1
0
Fork 0

transforms/inline: do not writeback bool

This commit is contained in:
Sebastien Bourdeauducq 2014-12-02 15:53:41 +08:00
parent 649fedd656
commit cad5933709
1 changed files with 2 additions and 1 deletions

View File

@ -453,7 +453,8 @@ def get_attr_writeback(attribute_namespace, rpc_mapper, loc_node):
if hasattr(attr_info.obj, attr): if hasattr(attr_info.obj, attr):
val = getattr(attr_info.obj, attr) val = getattr(attr_info.obj, attr)
if (not isinstance(val, int) if (not isinstance(val, int)
or isinstance(val, core_language.int64)): or isinstance(val, core_language.int64)
or isinstance(val, bool)):
continue continue
# #