e7c22eeaff
As snd_ff.rx_bytes[] is unsigned int, and NSEC_PER_SEC is 1000000000L,
the second multiplication in
ff->rx_bytes[port] * 8 * NSEC_PER_SEC / 31250
always overflows on 32-bit platforms, truncating the result. Fix this
by precalculating "NSEC_PER_SEC / 31250", which is an integer constant.
Note that this assumes ff->rx_bytes[port] <= 16777.
Fixes:
|
||
---|---|---|
.. | ||
Makefile | ||
amdtp-ff.c | ||
ff-hwdep.c | ||
ff-midi.c | ||
ff-pcm.c | ||
ff-proc.c | ||
ff-protocol-former.c | ||
ff-protocol-latter.c | ||
ff-stream.c | ||
ff-transaction.c | ||
ff.c | ||
ff.h |