ref: c69e9418f73b3e769d3a5cce75c2f464670c5922
parent: b35fd9ddcfadf0d4a37d848962825a15f7da6587
author: robs <robs>
date: Sat Jun 28 06:35:24 EDT 2008
quash warning
--- a/src/wav.c
+++ b/src/wav.c
@@ -1587,7 +1587,7 @@
double wide_sample = offset - (offset % ft->signal.channels);
double to_d = wide_sample * ft->encoding.bits_per_sample / 8;
off_t to = to_d;
- ft->sox_errno = (to != to_d)? SOX_EOF : lsx_seeki(ft, (sox_ssize_t)wav->dataStart + to, SEEK_SET);
+ ft->sox_errno = (to != to_d)? SOX_EOF : lsx_seeki(ft, (sox_ssize_t)wav->dataStart + (sox_ssize_t)to, SEEK_SET);
if (ft->sox_errno == SOX_SUCCESS)
wav->numSamples -= (sox_size_t)wide_sample / ft->signal.channels;
}