changeset 3183:19e3ec80dac9

alsa-ng: Another arithmetic overflow (hopefully the last one).
author John Lindgren <john.lindgren@tds.net>
date Fri, 12 Jun 2009 17:15:10 -0400
parents 631d217913e0
children b009fad90e92
files src/alsa-ng/alsa-core.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);