mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #1599 from kyab/fix_mrb_word_boxing
Fix build error for MRB_WORD_BOXING
This commit is contained in:
@@ -215,6 +215,7 @@ enum mrb_vtype {
|
||||
|
||||
#if defined(MRB_WORD_BOXING)
|
||||
|
||||
#include <limits.h>
|
||||
#define MRB_TT_HAS_BASIC MRB_TT_FLOAT
|
||||
|
||||
enum mrb_special_consts {
|
||||
|
||||
+1
-1
@@ -2409,7 +2409,7 @@ scope_new(mrb_state *mrb, codegen_scope *prev, node *lv)
|
||||
p->iseq = (mrb_code*)mrb_malloc(mrb, sizeof(mrb_code)*p->icapa);
|
||||
|
||||
p->pcapa = 32;
|
||||
p->irep->pool = (struct mrb_value*)mrb_malloc(mrb, sizeof(struct mrb_value)*p->pcapa);
|
||||
p->irep->pool = (mrb_value*)mrb_malloc(mrb, sizeof(mrb_value)*p->pcapa);
|
||||
p->irep->plen = 0;
|
||||
|
||||
p->scapa = 256;
|
||||
|
||||
+1
-1
@@ -87,7 +87,7 @@ read_irep_record_1(mrb_state *mrb, const uint8_t *bin, uint32_t *len)
|
||||
if (SIZE_ERROR_MUL(sizeof(mrb_value), plen)) {
|
||||
return NULL;
|
||||
}
|
||||
irep->pool = (struct mrb_value*)mrb_malloc(mrb, sizeof(mrb_value) * plen);
|
||||
irep->pool = (mrb_value*)mrb_malloc(mrb, sizeof(mrb_value) * plen);
|
||||
if (irep->pool == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user