Commit: b42585b2fd21afda9f14a25e875ec29cb83e1dac
Parent: fd21f553e18db0a6d0407b4ab296c0e1c82b2c54
Author: Randy Palamar
Date: Mon, 7 Oct 2024 23:21:49 -0600
unreachable: fix typo
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/os_unix.c b/os_unix.c
@@ -24,6 +24,7 @@ static void __attribute__((noreturn))
os_fail(void)
{
_exit(1);
+ unreachable();
}
static Arena
diff --git a/util.h b/util.h
@@ -21,7 +21,7 @@
#ifdef _MSC_VER
#define unreachable() __assume(0)
#else
- #define unreachable() __builtitin_unreachable()
+ #define unreachable() __builtin_unreachable()
#endif
#endif