fix toTimespec
This commit is contained in:
@@ -214,8 +214,8 @@ PIDateTime PIDateTime::current() {
|
||||
|
||||
void PISystemTime::toTimespec(void * ts) {
|
||||
#ifndef WINDOWS
|
||||
(timespec*)ts->tv_sec = seconds;
|
||||
(timespec*)ts->tv_nsec = nanoseconds;
|
||||
((timespec*)ts)->tv_sec = seconds;
|
||||
((timespec*)ts)->tv_nsec = nanoseconds;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user