Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
e9e1259b
Commit
e9e1259b
authored
Nov 26, 2013
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1599 from kyab/fix_mrb_word_boxing
Fix build error for MRB_WORD_BOXING
parents
0f9d287b
1a6244d9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
include/mruby/value.h
include/mruby/value.h
+1
-0
src/codegen.c
src/codegen.c
+1
-1
src/load.c
src/load.c
+1
-1
No files found.
include/mruby/value.h
View file @
e9e1259b
...
...
@@ -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
{
...
...
src/codegen.c
View file @
e9e1259b
...
...
@@ -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
;
...
...
src/load.c
View file @
e9e1259b
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment