diff --git a/tests/test_litl_mapping_to_fxt.c b/tests/test_litl_mapping_to_fxt.c
index ef32178..d07fb11 100644
--- a/tests/test_litl_mapping_to_fxt.c
+++ b/tests/test_litl_mapping_to_fxt.c
@@ -79,7 +79,7 @@ int main() {
   fut_endup(filename);
   fut_done();
 
-  uint64_t size;
+  unsigned long size;
   FILE* fp = fopen(filename, "r");
   fseek(fp, 0L, SEEK_END);
   size = ftell(fp);
diff --git a/tests/test_litl_trace_size.c b/tests/test_litl_trace_size.c
index 5d1e8c9..dc4c711 100644
--- a/tests/test_litl_trace_size.c
+++ b/tests/test_litl_trace_size.c
@@ -57,7 +57,7 @@ int main(int argc, char **argv) {
   size = ftell(fp);
   fclose(fp);
 
-  printf("\nThe size of the trace file with %d packed event6 is %ld bytes \n",
+  printf("\nThe size of the trace file with %d packed event6 is %d bytes \n",
          nb_iter, size);
 
   return EXIT_SUCCESS;
