aboutsummaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2009-11-19 16:42:29 +0100
committerThomas White <taw@physics.org>2009-11-19 16:42:29 +0100
commit377810c338e2f84d0ebc4b44086eb8ecf5f6741d (patch)
tree23881e8c3ada29a19f6e480d64e3d8c4886fc2c1 /src/utils.c
parentbee783eed9fcbcfa6b0d5be0bb98709757261b7a (diff)
Add explicit casts when converting types
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c
index 2868ef08..e33defd4 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -166,7 +166,7 @@ void progress_bar(int val, int total)
char s[1024];
frac = (double)val/total;
- n = frac*80;
+ n = (int)(frac*80);
for ( i=0; i<n; i++ ) s[i] = '=';
for ( i=n; i<80; i++ ) s[i] = '.';