diff options
Diffstat (limited to 'vm_insnhelper.h')
-rw-r--r-- | vm_insnhelper.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vm_insnhelper.h b/vm_insnhelper.h index ccf0c46db8..b94b777606 100644 --- a/vm_insnhelper.h +++ b/vm_insnhelper.h @@ -260,9 +260,9 @@ THROW_DATA_CATCH_FRAME_SET(struct THROW_DATA *obj, const rb_control_frame_t *cfp } static inline void -THROW_DATA_STATE_SET(struct THROW_DATA *obj, VALUE st) +THROW_DATA_STATE_SET(struct THROW_DATA *obj, int st) { - obj->throw_state = st; + obj->throw_state = (VALUE)st; } static inline VALUE @@ -277,10 +277,10 @@ THROW_DATA_CATCH_FRAME(const struct THROW_DATA *obj) return obj->catch_frame; } -static VALUE +static int THROW_DATA_STATE(const struct THROW_DATA *obj) { - return obj->throw_state; + return (int)obj->throw_state; } struct IFUNC { |