Express assumption about struct timespec.

We basically cast a struct timespec pointer to a time_t pointer when we pass the clock_settime() paramter to localtime(). Explicitly express that in the source code.
This commit is contained in:
Oliver Schmidt
2018-08-18 01:28:30 +02:00
parent eb9872c684
commit fe5af26f9f
5 changed files with 5 additions and 0 deletions

View File

@@ -20,6 +20,7 @@
jsr pushax
.assert timespec::tv_sec = 0, error
jsr _localtime
sta ptr1
stx ptr1+1