mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
use correct type for argument and return value in qt_timeout_value()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
8a7c9e784c
commit
079cc389b4
1 changed files with 2 additions and 2 deletions
|
@ -311,12 +311,12 @@ union qt_semun {
|
|||
Returns the difference between msecs and elapsed. If msecs is -1,
|
||||
however, -1 is returned.
|
||||
*/
|
||||
inline static int qt_timeout_value(int msecs, int elapsed)
|
||||
inline static qint64 qt_timeout_value(qint64 msecs, qint64 elapsed)
|
||||
{
|
||||
if (msecs == -1)
|
||||
return -1;
|
||||
|
||||
int timeout = msecs - elapsed;
|
||||
qint64 timeout = msecs - elapsed;
|
||||
return timeout < 0 ? 0 : timeout;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue