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
1a6244d9
Commit
1a6244d9
authored
Nov 26, 2013
by
kyab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build error for MRB_WORD_BOXING
parent
0f9d287b
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 @
1a6244d9
...
@@ -215,6 +215,7 @@ enum mrb_vtype {
...
@@ -215,6 +215,7 @@ enum mrb_vtype {
#if defined(MRB_WORD_BOXING)
#if defined(MRB_WORD_BOXING)
#include <limits.h>
#define MRB_TT_HAS_BASIC MRB_TT_FLOAT
#define MRB_TT_HAS_BASIC MRB_TT_FLOAT
enum
mrb_special_consts
{
enum
mrb_special_consts
{
...
...
src/codegen.c
View file @
1a6244d9
...
@@ -2409,7 +2409,7 @@ scope_new(mrb_state *mrb, codegen_scope *prev, node *lv)
...
@@ -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
->
iseq
=
(
mrb_code
*
)
mrb_malloc
(
mrb
,
sizeof
(
mrb_code
)
*
p
->
icapa
);
p
->
pcapa
=
32
;
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
->
irep
->
plen
=
0
;
p
->
scapa
=
256
;
p
->
scapa
=
256
;
...
...
src/load.c
View file @
1a6244d9
...
@@ -87,7 +87,7 @@ read_irep_record_1(mrb_state *mrb, const uint8_t *bin, uint32_t *len)
...
@@ -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
))
{
if
(
SIZE_ERROR_MUL
(
sizeof
(
mrb_value
),
plen
))
{
return
NULL
;
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
)
{
if
(
irep
->
pool
==
NULL
)
{
return
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