Skip to content

Commit ba19ad6

Browse files
committed
fixup! Use C11 time and sleep functions
1 parent d2bd485 commit ba19ad6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sonyflake_turbo/sonyflake.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ bool incr_combined_sequence(struct sonyflake_state *self) {
3535
}
3636

3737
static inline void get_relative_current_time(struct sonyflake_state *self, struct timespec *now) {
38-
assert(timespec_get(now, TIME_UTC) != 0);
38+
timespec_get(now, TIME_UTC);
3939
sub_diff(now, &self->start_time);
4040
}
4141

0 commit comments

Comments
 (0)