summaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2020-10-21 10:58:33 +0100
committerYann Herklotz <git@yannherklotz.com>2020-10-21 10:58:33 +0100
commit6dd9605a5e83d0539bcdefeca675f1070038ee68 (patch)
treec02efeafcf5dde612e598b9799a12576a4bd68f9 /data
parentf16ba021e4f5c7f5a933acbd7e38e077bbb42d75 (diff)
downloadoopsla21_fvhls-6dd9605a5e83d0539bcdefeca675f1070038ee68.tar.gz
oopsla21_fvhls-6dd9605a5e83d0539bcdefeca675f1070038ee68.zip
Work on Nadesh's comments in Verilog section
Diffstat (limited to 'data')
-rw-r--r--data/accumulator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/accumulator.c b/data/accumulator.c
index 007ae2b..aa7171a 100644
--- a/data/accumulator.c
+++ b/data/accumulator.c
@@ -1,9 +1,9 @@
int main() {
int x[3] = {1, 2, 3};
- int sum = 0, incr = 1;
+ int sum = 0;
for (int i = 0;
i < 3;
- i=i+incr)
+ i++)
sum += x[i];
return sum;
}