VirtualBox

Changeset 72160 in vbox for trunk/src


Ignore:
Timestamp:
May 8, 2018 11:49:32 AM (7 years ago)
Author:
vboxsync
Message:

Runtime/testcase/tstRTTimeSpec.cpp: fix sloppy coding, on Windows normal integers on 64-bit host OS are passed as 32-bit values, causing printf formatting trouble

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstRTTimeSpec.cpp

    r72140 r72160  
    288288    TEST_NS(INT64_MAX);
    289289    TEST_NS(INT64_MIN);
    290     TEST_SEC(1095379198);
     290    TEST_SEC(INT64_C(1095379198));
    291291    CHECK_TIME(&T1, 2004, 9,16, 23,59,58,        0, 260, 3, 0, RTTIME_FLAGS_TYPE_UTC | RTTIME_FLAGS_LEAP_YEAR);
    292     TEST_SEC(1095379199);
     292    TEST_SEC(INT64_C(1095379199));
    293293    CHECK_TIME(&T1, 2004, 9,16, 23,59,59,        0, 260, 3, 0, RTTIME_FLAGS_TYPE_UTC | RTTIME_FLAGS_LEAP_YEAR);
    294     TEST_SEC(1095379200);
     294    TEST_SEC(INT64_C(1095379200));
    295295    CHECK_TIME(&T1, 2004, 9,17, 00,00,00,        0, 261, 4, 0, RTTIME_FLAGS_TYPE_UTC | RTTIME_FLAGS_LEAP_YEAR);
    296     TEST_SEC(1095379201);
     296    TEST_SEC(INT64_C(1095379201));
    297297    CHECK_TIME(&T1, 2004, 9,17, 00,00,01,        0, 261, 4, 0, RTTIME_FLAGS_TYPE_UTC | RTTIME_FLAGS_LEAP_YEAR);
    298298
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