summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mruby/value.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mruby/value.h b/include/mruby/value.h
index 876f8e08f..c631e4764 100644
--- a/include/mruby/value.h
+++ b/include/mruby/value.h
@@ -292,8 +292,8 @@ typedef struct mrb_value {
static inline mrb_value
mrb_float_value(struct mrb_state *mrb, mrb_float f)
{
- (void) mrb;
mrb_value v;
+ (void) mrb;
MRB_SET_VALUE(v, MRB_TT_FLOAT, value.f, f);
return v;
@@ -446,8 +446,8 @@ mrb_voidp_value(struct mrb_state *mrb, void *p);
static inline mrb_value
mrb_voidp_value(struct mrb_state *mrb, void *p)
{
- (void) mrb;
mrb_value v;
+ (void) mrb;
MRB_SET_VALUE(v, MRB_TT_VOIDP, value.p, p);
return v;