VirtualBox

Changeset 34990 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
Dec 13, 2010 11:12:42 AM (14 years ago)
Author:
vboxsync
Message:

IPRT/RTTimeExplode: Use remainder.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/time/time.cpp

    r34989 r34990  
    273273    pTime->fFlags = RTTIME_FLAGS_TYPE_UTC;
    274274    i64Div = pTimeSpec->i64NanosecondsRelativeToUnixEpoch;
    275     i32Rem = ASMDivS64ByS32RetS32(i64Div, 1000000000);
     275    i32Rem = (int32_t)ASMModU64ByU32RetU32(i64Div, 1000000000);
    276276    i64Div = (int64_t)ASMDivS64ByS32RetS32(i64Div, 1000000000);
    277277    if (i32Rem < 0)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette