Mercurial > audlegacy
diff Plugins/Input/console/Audacious_Driver.cpp @ 1377:61d78065b630 trunk
[svn] - properly respect signedness in get_spc_info_().
| author | nenolod |
|---|---|
| date | Sun, 09 Jul 2006 22:59:20 -0700 |
| parents | ece68ef26b94 |
| children | b7250d516b62 |
line wrap: on
line diff
--- a/Plugins/Input/console/Audacious_Driver.cpp Sat Jul 08 08:29:18 2006 -0700 +++ b/Plugins/Input/console/Audacious_Driver.cpp Sun Jul 09 22:59:20 2006 -0700 @@ -252,10 +252,9 @@ track_info_t* out ) { // decode length (can be in text or binary format) - char s [4] = { h.len_secs [0], h.len_secs [1], h.len_secs [2], 0 }; + unsigned const char s [4] = { h.len_secs [0], h.len_secs [1], h.len_secs [2], 0 }; int len_secs = (unsigned char) s [1] * 0x100 + s [0]; - if ( s [1] >= ' ' || (!s [1] && isdigit( s [0] )) ) - len_secs = atoi( s ); + if ( len_secs ) out->length = len_secs * 1000;
