aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2018-07-02 16:55:12 +0200
committerGerd Hoffmann <kraxel@redhat.com>2018-07-03 11:45:33 +0200
commitcabedbc24eb53c3feee612750929a7e307600e20 (patch)
tree8918d05463b566c8fbbf4697d23bd2673bf8eb32 /hw
parent9d340f6755fe3ee311f6758a453fae785ec05528 (diff)
downloadqemu-cabedbc24eb53c3feee612750929a7e307600e20.zip
qemu-cabedbc24eb53c3feee612750929a7e307600e20.tar.gz
qemu-cabedbc24eb53c3feee612750929a7e307600e20.tar.bz2
audio/hda: fix CID 1393631
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20180702145513.11481-2-kraxel@redhat.com
Diffstat (limited to 'hw')
-rw-r--r--hw/audio/hda-codec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/audio/hda-codec.c b/hw/audio/hda-codec.c
index 9f630fa..2b58c35 100644
--- a/hw/audio/hda-codec.c
+++ b/hw/audio/hda-codec.c
@@ -189,7 +189,7 @@ struct HDAAudioState {
static inline int64_t hda_bytes_per_second(HDAAudioStream *st)
{
- return 2 * st->as.nchannels * st->as.freq;
+ return 2LL * st->as.nchannels * st->as.freq;
}
static inline void hda_timer_sync_adjust(HDAAudioStream *st, int64_t target_pos)