Commit edd46499 authored by yoogx's avatar yoogx
Browse files

* Solve ANSI C limits

parent f1242dd5
...@@ -43,7 +43,8 @@ void user_emit_integer (int* integer) ...@@ -43,7 +43,8 @@ void user_emit_integer (int* integer)
void user_emit_array (software__array_type* data_source) void user_emit_array (software__array_type* data_source)
{ {
for (int i = 0; i < 16384; i++) int i;
for (i = 0; i < 16384; i++)
(*data_source)[i]=i; (*data_source)[i]=i;
printf ("Emetting array\n"); printf ("Emetting array\n");
...@@ -77,8 +78,9 @@ void user_receive_struct (software__struct_type_impl i) ...@@ -77,8 +78,9 @@ void user_receive_struct (software__struct_type_impl i)
void user_receive_array (software__array_type data) void user_receive_array (software__array_type data)
{ {
int i;
printf("Receive array: "); printf("Receive array: ");
for (int i = 0; i < 16; i++) for (i = 0; i < 16; i++)
assert (data[i] == i); assert (data[i] == i);
printf (" OK \n"); printf (" OK \n");
......
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