Sanity check. As there are implicaton SIZE_MAX >= UINT32_MAX in this code. This assumption may break on some targets which have 16bit memory space.

This commit is contained in:
Masaki Muranaka
2013-03-09 00:30:06 +09:00
parent 51de2ba1d9
commit 8a7f5360cf
+6
View File
@@ -12,6 +12,12 @@
#include "mruby/irep.h"
#ifndef _WIN32
# if SIZE_MAX < UINT32_MAX
# error "It can't be run this code on this environment (SIZE_MAX < UINT32_MAX)"
# endif
#endif
static size_t
offset_crc_body()
{