diff options
author | dzwdz | 2021-08-10 14:32:05 +0000 |
---|---|---|
committer | dzwdz | 2021-08-10 14:32:05 +0000 |
commit | 618c73eee71f5790af8d5748f707f2be21099a00 (patch) | |
tree | 9db66e54568b49a2b1cdf87d93669093fdd4814a /src/kernel | |
parent | 294b8b1ac82352e23a83ce9cad7af9d3b98365ef (diff) |
statically assert that the pointer size == 4 bytes
Diffstat (limited to 'src/kernel')
-rw-r--r-- | src/kernel/arch/i386/multiboot.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kernel/arch/i386/multiboot.h b/src/kernel/arch/i386/multiboot.h index f030247..b780f91 100644 --- a/src/kernel/arch/i386/multiboot.h +++ b/src/kernel/arch/i386/multiboot.h @@ -1,7 +1,8 @@ #pragma once #include <stdint.h> -// TODO assert that pointers have 4 bytes. +_Static_assert(sizeof(void*) == 4, + "this code assumes that pointers have 4 bytes"); struct multiboot_mod { void *start; |