Merge request https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/314 was reviewed by Joel Sherrill
-- Joel Sherrill started a new discussion on testsuites/sptests/sptimespec01/init.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/314#note_115838 > + rtems_timespec_set(timespec2, 1, 1); > + rtems_timespec_add_to(timespec1, timespec2); > + rtems_test_assert( (timespec1->tv_sec==4294967297)&&(timespec1->tv_nsec== > 2)) ; The constant 4294967297 needs to be 4294967297LL since it is over 32-bits. -- Joel Sherrill started a new discussion on testsuites/sptests/sptimespec01/init.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/314#note_115839 > +void test_greaterthan32bits(){ > +/* Basic test to see if addition works with a value greater than 32 bits */ > + rtems_timespec_set(timespec1, 4294967296, 1); The constant 4294967296 needs to be 429496729LL since it is over 32-bits. -- View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/314 You're receiving this email because of your account on gitlab.rtems.org.
_______________________________________________ bugs mailing list bugs@rtems.org http://lists.rtems.org/mailman/listinfo/bugs