Commit 14d83bb4 authored by Sergio Costas's avatar Sergio Costas

Now doesn't modify accidentally other variables when using __crust_set_XXX__

parent a50e2a7c
......@@ -17,4 +17,6 @@
#define __crust_disable__
#define __crust_full_enable__
#define __crust_debug__
#define __crust_set_null__(p)
#define __crust_set_not_null__(p)
#endif
......@@ -387,8 +387,8 @@ class crust(object):
else:
self._add_error(thread_status, self.MSG_ERROR, "Assignment to '{:s}' at line {:d}, which was already assigned at line {:d}", var_name, line_number, variable["init_line"])
variable["init_line"] = line_number
if force:
block_id = variable["uid"]
block_id = variable["uid"]
if force and (block_id is not None):
for blocks in thread_status["variables"]:
for varname in blocks:
if blocks[varname]["uid"] == block_id:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment