summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMasaki Muranaka <[email protected]>2013-03-29 16:32:15 +0900
committerMasaki Muranaka <[email protected]>2013-03-29 16:32:15 +0900
commit24eb120148921871b3e4e6ea812272782d2e0757 (patch)
tree2c86e2bcd1c5f49f8041cf9c9880df8a3a29dab1 /src
parent59c8d6c13a91d1fb43927b3cc16bfced4dda1e8e (diff)
downloadmruby-24eb120148921871b3e4e6ea812272782d2e0757.tar.gz
mruby-24eb120148921871b3e4e6ea812272782d2e0757.zip
Add CHAR_BIT check. There are uint8_t to char conversions.
Diffstat (limited to 'src')
-rw-r--r--src/load.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/load.c b/src/load.c
index 2596325df..a2f685742 100644
--- a/src/load.c
+++ b/src/load.c
@@ -23,6 +23,10 @@
# endif
#endif
+#if CHAR_BIT != 8
+# error This code assumes CHAR_BIT == 8
+#endif
+
static size_t
offset_crc_body()
{