diff options
| author | Nick Erdmann <n@nirf.de> | 2020-03-10 00:56:47 +0100 |
|---|---|---|
| committer | Nick Erdmann <n@nirf.de> | 2020-03-12 23:23:12 +0100 |
| commit | 92beb13914a680f4b41fe459ab095684076daa07 (patch) | |
| tree | ffe72c388f6ab704d6f3660cae3b54325d10378d /lib/std/os.zig | |
| parent | 6c368b9e7310af0b994e736e5bd5aee4a5723c95 (diff) | |
| download | zig-92beb13914a680f4b41fe459ab095684076daa07.tar.gz zig-92beb13914a680f4b41fe459ab095684076daa07.zip | |
std/os/uefi: status reform
Diffstat (limited to 'lib/std/os.zig')
| -rw-r--r-- | lib/std/os.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/os.zig b/lib/std/os.zig index 76a5dc2be5..d75634d17e 100644 --- a/lib/std/os.zig +++ b/lib/std/os.zig @@ -273,10 +273,10 @@ pub fn exit(status: u8) noreturn { // exit() is only avaliable if exitBootServices() has not been called yet. // This call to exit should not fail, so we don't care about its return value. if (uefi.system_table.boot_services) |bs| { - _ = bs.exit(uefi.handle, status, 0, null); + _ = bs.exit(uefi.handle, @intToEnum(uefi.Status, status), 0, null); } // If we can't exit, reboot the system instead. - uefi.system_table.runtime_services.resetSystem(uefi.tables.ResetType.ResetCold, status, 0, null); + uefi.system_table.runtime_services.resetSystem(uefi.tables.ResetType.ResetCold, @intToEnum(uefi.Status, status), 0, null); } system.exit(status); } |
