mirror of
https://github.com/cc65/cc65.git
synced 2025-01-10 19:29:45 +00:00
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:
parent
eb9872c684
commit
fe5af26f9f
@ -29,6 +29,7 @@ _clock_settime:
|
||||
tya ; Restore A
|
||||
|
||||
; Get tm
|
||||
.assert timespec::tv_sec = 0, error
|
||||
jsr _localtime
|
||||
sta ptr1
|
||||
stx ptr1+1
|
||||
|
@ -20,6 +20,7 @@
|
||||
|
||||
jsr pushax
|
||||
|
||||
.assert timespec::tv_sec = 0, error
|
||||
jsr _localtime
|
||||
sta ptr1
|
||||
stx ptr1+1
|
||||
|
@ -20,6 +20,7 @@
|
||||
|
||||
jsr pushax
|
||||
|
||||
.assert timespec::tv_sec = 0, error
|
||||
jsr _localtime
|
||||
sta ptr1
|
||||
stx ptr1+1
|
||||
|
@ -23,6 +23,7 @@
|
||||
jsr sys_bank
|
||||
jsr pushax
|
||||
|
||||
.assert timespec::tv_sec = 0, error
|
||||
jsr _localtime
|
||||
sta ptr1
|
||||
stx ptr1+1
|
||||
|
@ -23,6 +23,7 @@
|
||||
jsr sys_bank
|
||||
jsr pushax
|
||||
|
||||
.assert timespec::tv_sec = 0, error
|
||||
jsr _localtime
|
||||
sta ptr1
|
||||
stx ptr1+1
|
||||
|
Loading…
x
Reference in New Issue
Block a user