aboutsummaryrefslogtreecommitdiff
path: root/pseudocode/operators/TILE.tosac
diff options
context:
space:
mode:
authorKevin Petit <kevin.petit@arm.com>2024-02-08 11:03:31 +0000
committerKevin Petit <kevin.petit@arm.com>2024-02-23 18:34:06 +0000
commitafaaa673e1620315e0d7d863d7bcef1a2dc54df9 (patch)
treebdba3f5658083c12694ae28448ed8551039ced6d /pseudocode/operators/TILE.tosac
parent0635552aed54eee35ca417901b65754a07a12dae (diff)
downloadspecification-afaaa673e1620315e0d7d863d7bcef1a2dc54df9.tar.gz
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 <kevin.petit@arm.com> Change-Id: I7d44d9adde606094e0a7910fb438649521ff3ec0
Diffstat (limited to 'pseudocode/operators/TILE.tosac')
-rw-r--r--pseudocode/operators/TILE.tosac2
1 files changed, 1 insertions, 1 deletions
diff --git a/pseudocode/operators/TILE.tosac b/pseudocode/operators/TILE.tosac
index be1cfee..5ebd1c1 100644
--- a/pseudocode/operators/TILE.tosac
+++ b/pseudocode/operators/TILE.tosac
@@ -11,7 +11,7 @@ ERROR_IF(rank(shape1) != rank(shape));
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++) {
ERROR_IF(shape1[i] * multiples[i] != shape[i]);
tmp_index[i] = index[i] % shape1[i];
}