Skip to content

Commit

Permalink
Safeguard against using MRB_INT64 with MRB_WORD_BOXING in 32-bit mode
Browse files Browse the repository at this point in the history
  • Loading branch information
dabroz committed Nov 27, 2016
1 parent 72915ca commit 3fdfd8c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/mruby/boxing_word.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3fdfd8c

Please sign in to comment.