comparison src/alsa-ng/alsa-core.c @ 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
comparison
equal deleted inserted replaced
3182:631d217913e0 3183:19e3ec80dac9
394 gint ret = 0; 394 gint ret = 0;
395 395
396 g_mutex_lock(pcm_state_mutex); 396 g_mutex_lock(pcm_state_mutex);
397 397
398 if (pcm_going) 398 if (pcm_going)
399 ret = (wr_total * 1000) / bps; 399 ret = wr_total * (long long) 1000 / bps;
400 400
401 g_mutex_unlock(pcm_state_mutex); 401 g_mutex_unlock(pcm_state_mutex);
402 402
403 return ret; 403 return ret;
404 } 404 }