Commits

Maciej Fijalkowski committed a8852fe

fix reading

  • Participants
  • Parent commits 2fa31a6

Comments (0)

Files changed (2)

bench/numeric/arr.c

   int count = 0;
   FILE* f = fopen(FILENAME, "r");
   while (count < size) {
-    count += fread(arr, 1, size - count, f);
+    count += fread(arr + count, 1, size - count, f);
   }
   fclose(f);
 }

bench/numeric/arrloop.c

   int count = 0;
   FILE* f = fopen(FILENAME, "r");
   while (count < size) {
-    count += fread(arr, 1, size - count, f);
+    count += fread(arr + count, 1, size - count, f);
   }
   fclose(f);
 }