From 8a7f5360cf58492467df6ec236355436bdc2a977 Mon Sep 17 00:00:00 2001 From: Masaki Muranaka Date: Sat, 9 Mar 2013 00:30:06 +0900 Subject: 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. --- src/load.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/load.c b/src/load.c index be3d9ac65..8cd303ca5 100644 --- a/src/load.c +++ b/src/load.c @@ -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() { -- cgit v1.2.3