summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qcore_unix_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/kernel/qcore_unix_p.h')
-rw-r--r--src/corelib/kernel/qcore_unix_p.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/corelib/kernel/qcore_unix_p.h b/src/corelib/kernel/qcore_unix_p.h
index 00ec4af203..e7259d29c9 100644
--- a/src/corelib/kernel/qcore_unix_p.h
+++ b/src/corelib/kernel/qcore_unix_p.h
@@ -101,13 +101,13 @@ QT_BEGIN_NAMESPACE
// Internal operator functions for timevals
inline timeval &normalizedTimeval(timeval &t)
{
- while (t.tv_usec > 1000000l) {
+ while (t.tv_usec >= 1000000) {
++t.tv_sec;
- t.tv_usec -= 1000000l;
+ t.tv_usec -= 1000000;
}
- while (t.tv_usec < 0l) {
+ while (t.tv_usec < 0) {
--t.tv_sec;
- t.tv_usec += 1000000l;
+ t.tv_usec += 1000000;
}
return t;
}