Commit eacc6a724f99a5de9689aec258027bb9d1e0a13c

Authored by Arnaud Blanchard
1 parent e513171a

Fix for 32bits system (i.e raspberry)

Showing 1 changed file with 1 additions and 1 deletions
@@ -39,7 +39,7 @@ int main(int argc, char** argv){ @@ -39,7 +39,7 @@ int main(int argc, char** argv){
39 SYSTEM_ERROR_CHECK(file=fopen(filename, "w"), NULL, "Creating '%s'", filename); 39 SYSTEM_ERROR_CHECK(file=fopen(filename, "w"), NULL, "Creating '%s'", filename);
40 40
41 BLC_COMMAND_LOOP(period){ 41 BLC_COMMAND_LOOP(period){
42 - if (time_str) fprintf(file, "%lld\t", blc_loop_timer.tv_sec*1000000+blc_loop_timer.tv_usec); 42 + if (time_str) fprintf(file, "%lld\t", (int64_t)blc_loop_timer.tv_sec*1000000+ (int64_t)blc_loop_timer.tv_usec);
43 channel.fprint_tsv(file); 43 channel.fprint_tsv(file);
44 } 44 }
45 SYSTEM_ERROR_CHECK(fclose(file), -1, "Closing '%s'", filename); 45 SYSTEM_ERROR_CHECK(fclose(file), -1, "Closing '%s'", filename);