diff options
author | Guy Harris <guy@alum.mit.edu> | 2009-04-21 16:57:52 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2009-04-21 16:57:52 +0000 |
commit | 54c159cb41d3d885807ce117b41cfbb444e45e5a (patch) | |
tree | 26c23c6b5773084609cd0d8ff02dfbd9cf624e1f /gtk/mtp3_stat.c | |
parent | 85f8b0d87d42dd092ee8baaa0786d9ef8cf49080 (diff) |
Turn on -Wshorten-64-to-32 by default, and fix some issues that turned
up (99 44/100% of which were assignments of double-precision
floating-point constants to floats). Hopefully this will catch at least
some P64 issues on UN*X.
svn path=/trunk/; revision=28108
Diffstat (limited to 'gtk/mtp3_stat.c')
-rw-r--r-- | gtk/mtp3_stat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/mtp3_stat.c b/gtk/mtp3_stat.c index 11d6f08d55..b00db8981a 100644 --- a/gtk/mtp3_stat.c +++ b/gtk/mtp3_stat.c @@ -324,7 +324,7 @@ mtp3_stat_draw( * : * should generally be preferred when inserting rows in a sorted list store. */ - avg = 0.0; + avg = 0.0f; if ((*stat_p)[i].si_code[j].num_msus !=0){ avg = (float)(*stat_p)[i].si_code[j].size/(float)(*stat_p)[i].si_code[j].num_msus; } |