VirtualBox

Changeset 75557 in vbox for trunk/src/VBox/Runtime/r3


Ignore:
Timestamp:
Nov 18, 2018 7:46:03 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
126716
Message:

IPRT/RTTimeSet-os2.cpp: RT_NS_1MIN is unsigned, make it signed so we ge the right results (weird).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/os2/RTTimeSet-os2.cpp

    r75466 r75557  
    7373           the call if we're more than +/-780 min (13h) distant, so clamp it in
    7474           case of bogus TZ values. */
    75         DateTime.timezone   = (int16_t)(-cNsLocalDelta / RT_NS_1MIN);
     75        DateTime.timezone   = (int16_t)(-cNsLocalDelta / (int64_t)RT_NS_1MIN);
    7676        if (DateTime.timezone > 780)
    7777            DateTime.timezone = 780;
Note: See TracChangeset for help on using the changeset viewer.

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