Selaa lähdekoodia

Fix missing return statement

flysand7 1 vuosi sitten
vanhempi
commit
851fd1f8d1
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      core/sys/linux/sys.odin

+ 1 - 0
core/sys/linux/sys.odin

@@ -2186,6 +2186,7 @@ time :: proc "contextless" (tloc: ^uint) -> (Errno) {
 		ts: Time_Spec
 		ts: Time_Spec
 		ret := syscall(SYS_clock_gettime, Clock_Id.REALTIME, ts)
 		ret := syscall(SYS_clock_gettime, Clock_Id.REALTIME, ts)
 		tloc^ = ts.time_sec
 		tloc^ = ts.time_sec
+		return Errno(-ret)
 	}
 	}
 }
 }