Improved error handling for struct types

This commit is contained in:
Eduard Urbach 2025-02-08 16:29:56 +01:00
parent 8357aefc01
commit b2030c506c
Signed by: eduard
GPG key ID: 49226B848C78F6C8
5 changed files with 22 additions and 9 deletions

View file

@ -7,7 +7,7 @@ sleep(nanoseconds Int) {
seconds, nanoseconds = nanoseconds / 1000000000
}
duration := new(timespec)
duration := new(sys.timespec)
duration.seconds = seconds
duration.nanoseconds = nanoseconds
sys.nanosleep(duration)