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/SLICE.tosac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pseudocode/operators/SLICE.tosac') diff --git a/pseudocode/operators/SLICE.tosac b/pseudocode/operators/SLICE.tosac index b6f70c5..b7b0680 100644 --- a/pseudocode/operators/SLICE.tosac +++ b/pseudocode/operators/SLICE.tosac @@ -20,7 +20,7 @@ for_each(index in rank(shape1)) { for_each(index in shape) { shape_t tmp_index = index; - for(i = 0; i < rank(shape); i++) { + for(int32_t i = 0; i < rank(shape); i++) { tmp_index[i] = index[i] + start[i]; } in_out_t value = tensor_read(input1, shape1, tmp_index); -- cgit v1.2.1