From ef4150877bec1c0ca719a621e7067697a32fab54 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Tue, 14 Jan 2020 16:46:31 +0300 Subject: [PATCH] check for 8 bits --- src/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.c b/src/main.c index e540092..509e689 100644 --- a/src/main.c +++ b/src/main.c @@ -25,6 +25,11 @@ # error WTF dude? Asserts are good things! #endif +#include +#if CHAR_BIT != 8 +# error There are not 8 bits in a char! +#endif + #include #include