From a724586b431daa747c4d3268dd6b9c70a0c6ec7b Mon Sep 17 00:00:00 2001 From: Scott Wheeler Date: Tue, 8 Apr 2008 12:15:20 +0000 Subject: [PATCH] Don't overflow for really high bitrate files. git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@794711 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- taglib/flac/flacproperties.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taglib/flac/flacproperties.cpp b/taglib/flac/flacproperties.cpp index 3ee018fe..f1370590 100644 --- a/taglib/flac/flacproperties.cpp +++ b/taglib/flac/flacproperties.cpp @@ -146,5 +146,5 @@ void FLAC::Properties::read() // Real bitrate: - d->bitrate = d->length > 0 ? ((d->streamLength * 8L) / d->length) / 1000 : 0; + d->bitrate = d->length > 0 ? ((d->streamLength * 8UL) / d->length) / 1000 : 0; }