diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-11-27 21:00:34 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2016-11-27 21:00:34 +0900 |
| commit | 5ea1bb0eea433a43dca22b34d051de2728bf5170 (patch) | |
| tree | 450c9c151bd594d55058889bf979a63d63649284 /include | |
| parent | f9f19f34dd8b267895fb61223b194a6ae6bdc89e (diff) | |
| parent | 3fdfd8cb4a80ff17a9478fa330cb2b544e76f088 (diff) | |
| download | mruby-5ea1bb0eea433a43dca22b34d051de2728bf5170.tar.gz mruby-5ea1bb0eea433a43dca22b34d051de2728bf5170.zip | |
Merge pull request #3301 from dabroz/feature-64-bit-word
Safeguard against using MRB_INT64 with MRB_WORD_BOXING in 32-bit mode
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/boxing_word.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mruby/boxing_word.h b/include/mruby/boxing_word.h index 8754087a3..30d69842f 100644 --- a/include/mruby/boxing_word.h +++ b/include/mruby/boxing_word.h @@ -11,6 +11,10 @@ # error MRB_INT16 is too small for MRB_WORD_BOXING. #endif +#if defined(MRB_INT64) && !defined(MRB_64BIT) +#error MRB_INT64 cannot be used with MRB_WORD_BOXING in 32-bit mode. +#endif + struct RFloat { MRB_OBJECT_HEADER; mrb_float f; |
