Make type casts safer.

This commit is contained in:
Masaki Muranaka
2014-03-08 13:54:02 +09:00
parent 058bb18f28
commit 270d25bf2d
8 changed files with 245 additions and 151 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ extern "C" {
extern const char mrb_digitmap[];
#define RSTRING_EMBED_LEN_MAX (sizeof(void*) * 3 - 1)
#define RSTRING_EMBED_LEN_MAX ((mrb_int)(sizeof(void*) * 3 - 1))
struct RString {
MRB_OBJECT_HEADER;