From afaaa673e1620315e0d7d863d7bcef1a2dc54df9 Mon Sep 17 00:00:00 2001 From: Kevin Petit Date: Thu, 8 Feb 2024 11:03:31 +0000 Subject: pseudocode: a collection of variable declaration fixes Only cases where types are obvious. - Add missing types - Do not re-declare variables - Fix scope of declaration Signed-off-by: Kevin Petit Change-Id: I7d44d9adde606094e0a7910fb438649521ff3ec0 --- pseudocode/operators/VARIABLE.tosac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pseudocode/operators/VARIABLE.tosac') diff --git a/pseudocode/operators/VARIABLE.tosac b/pseudocode/operators/VARIABLE.tosac index 4d2fce7..aaa2155 100644 --- a/pseudocode/operators/VARIABLE.tosac +++ b/pseudocode/operators/VARIABLE.tosac @@ -13,7 +13,7 @@ tensor_t var_tensor = variable_tensor_lookup(uid); // Invocation for the first time if (var_tensor == NULL) { // Allocate the persistent mutable memory for the variable tensor - tensor_t var_tensor = variable_tensor_allocate(var_shape, uid); + var_tensor = variable_tensor_allocate(var_shape, uid); if (initial_value != NULL) { REQUIRE(var_t == in_t); -- cgit v1.2.1