Skip to content

Commit a6219bf

Browse files
committedNov 15, 2022
virtual_oss: No need to cast seconds value.
Signed-off-by: Hans Petter Selasky <[email protected]>
1 parent 2ac1084 commit a6219bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎virtual_oss.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ virtual_oss_wait(void)
6161

6262
clock_gettime(CLOCK_MONOTONIC, &ts);
6363

64-
nsec = ((unsigned)ts.tv_sec) * 1000000000ULL + ts.tv_nsec;
64+
nsec = ts.tv_sec * 1000000000ULL + ts.tv_nsec;
6565

6666
delay = voss_dsp_samples;
6767
delay *= 1000000000ULL;
@@ -78,7 +78,7 @@ virtual_oss_timestamp(void)
7878

7979
clock_gettime(CLOCK_MONOTONIC, &ts);
8080

81-
nsec = ((unsigned)ts.tv_sec) * 1000000000ULL + ts.tv_nsec;
81+
nsec = ts.tv_sec * 1000000000ULL + ts.tv_nsec;
8282
return (nsec);
8383
}
8484

0 commit comments

Comments
 (0)