fix -Wconversion warning at gauge.c
gauge.c:101:51: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
gauge.c:102:58: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
patch against a5cd0093c5330ae6118cbf2830cf288dd4a68ed0
compile test with gcc 4.6/4.9/5.2 and clang 3.7
Signed-off-by: Andreas Mohr <and@gmx.li>
a
|
d
|
|
80 | 80 | { |
81 | 81 | int gauge_len; |
82 | 82 | int percentage, columns; |
83 | | long total = g->max; |
84 | | long done = g->current; |
| 83 | int total = g->max; |
| 84 | int done = g->current; |
85 | 85 | |
86 | 86 | if (total <= 0 || done < 0) |
87 | 87 | { |