# HG changeset patch # User John Lindgren # Date 1244841310 14400 # Node ID 19e3ec80dac9bb5f416cea248a8a634f66d2b7c5 # Parent 631d217913e0479f88abd0e25e472e48f0d04c62 alsa-ng: Another arithmetic overflow (hopefully the last one). diff -r 631d217913e0 -r 19e3ec80dac9 src/alsa-ng/alsa-core.c --- a/src/alsa-ng/alsa-core.c Fri Jun 12 09:17:09 2009 -0400 +++ b/src/alsa-ng/alsa-core.c Fri Jun 12 17:15:10 2009 -0400 @@ -396,7 +396,7 @@ g_mutex_lock(pcm_state_mutex); if (pcm_going) - ret = (wr_total * 1000) / bps; + ret = wr_total * (long long) 1000 / bps; g_mutex_unlock(pcm_state_mutex);