瀏覽代碼

Fix bug in race condition handler

Joeri Exelmans 5 年之前
父節點
當前提交
a6177fe6b1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/sccd/statechart/dynamic/memory_snapshot.py

+ 1 - 1
src/sccd/statechart/dynamic/memory_snapshot.py

@@ -66,7 +66,7 @@ class MemoryPartialSnapshot(MemoryInterface):
       variables = self.frame.scope.variables
       # some variable written to twice before refresh
       raise SCCDRuntimeException("Race condition in %s memory: More than one transition assigned a new value to variables: %s" %
-          (self.description, ", ".join(variables[offset].name for offset in race_conditions.items())))
+          (self.description, ", ".join(variables[offset].name for offset in bm_items(race_conditions))))
 
     self.round_dirty |= self.trans_dirty
     self.trans_dirty = Bitmap() # reset