From: Scott Wheeler Date: Tue, 8 Apr 2008 12:15:20 +0000 (+0000) Subject: Don't overflow for really high bitrate files. X-Git-Tag: v1.6rc1~93 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a724586b431daa747c4d3268dd6b9c70a0c6ec7b;p=taglib 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 --- 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; }