mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-19 21:10:30 +00:00
Fix typo
This commit is contained in:
@@ -61,7 +61,7 @@ _map_file :: proc "contextless" (fd: uintptr, size: i64, flags: Map_File_Flags)
|
||||
|
||||
flags := linux.Map_Flags{.SHARED}
|
||||
addr, errno := linux.mmap(0, uint(size), prot, flags, linux.Fd(fd), offset=0)
|
||||
if addr == nil || error != nil {
|
||||
if addr == nil || errno != nil {
|
||||
return nil, .Map_Failure
|
||||
}
|
||||
return ([^]byte)(addr)[:size], nil
|
||||
|
||||
Reference in New Issue
Block a user