Skip to content

Commit

Permalink
fix: warnings due to unprecise specifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
Yue Ren committed Jun 15, 2012
1 parent 87519dd commit 669b5e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ntl/src/tools.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,15 @@ void PrintTime(double t)
ss = ss - mm*60;

if (hh > 0)
printf("%d:",hh);
printf("%ld:",hh);

if (hh > 0 || mm > 0) {
if (hh > 0 && mm < 10) printf("0");
printf("%d:",mm);
printf("%ld:",mm);
}

if ((hh > 0 || mm > 0) && ss < 10) printf("0");
printf("%d:",ss);
printf("%ld:",ss);
}

NTL_END_IMPL

0 comments on commit 669b5e0

Please sign in to comment.