Closed rempas closed 2 years ago
I'm having an error that from what I understand has to do with casting. The code is the following:
alias time_t = i64; struct timespec { time_t tv_sec; /* seconds */ i64 tv_nsec; /* nanoseconds */ } i64 time_diff(timespec* start, timespec* end) { return (end.tv_sec - start.tv_sec) * cast(i64)1e9 + (end.tv_nsec - start.tv_nsec); }
Of course this is always a part of the code. Line 9 causes the error
I'm having an error that from what I understand has to do with casting. The code is the following:
Of course this is always a part of the code. Line 9 causes the error