[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [frameworks-kcoreaddons] [Bug 397008] KFormat::formatDuration returns different results with ms larg
From:       Christoph Feck <bugzilla_noreply () kde ! org>
Date:       2018-07-31 14:55:52
Message-ID: bug-397008-17878-LRwCRplaw8 () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=397008

Christoph Feck <cfeck@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |junior-jobs
             Status|UNCONFIRMED                 |CONFIRMED
     Ever confirmed|0                           |1

--- Comment #1 from Christoph Feck <cfeck@kde.org> ---
Currently uses qRound, which returns int, but either should use qRound64 (and
double instead of qreal), or just use int arithmetic for rounding, e.g. ((x +
50) / 100) * 100 will round to multiple of 100.

https://cgit.kde.org/kcoreaddons.git/tree/src/lib/util/kformatprivate.cpp#n332

-- 
You are receiving this mail because:
You are watching all bug changes.=
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic