more explicit typing and casting in timespec_to_sec

pull/8/head
Sara 2023-06-18 22:17:38 +02:00
parent fc1f3499e3
commit cfcd31cee8
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ static struct timespec start_last_frame;
inline static inline static
double timespec_to_sec(struct timespec spec) { double timespec_to_sec(struct timespec spec) {
return spec.tv_sec + spec.tv_nsec * 1E-09f; return (double)spec.tv_sec + (double)spec.tv_nsec * 1E-09;
} }
inline float delta_time() { inline float delta_time() {