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
d073129d
Commit
d073129d
authored
Nov 19, 2013
by
Per Lundberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed so that it builds with VS2013. VLA:s are not supported, because of its strict C89 world view.
parent
f9b14f49
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/load.c
src/load.c
+4
-4
No files found.
src/load.c
View file @
d073129d
...
...
@@ -505,8 +505,8 @@ mrb_load_irep(mrb_state *mrb, const uint8_t *bin)
static
int
read_lineno_record_file
(
mrb_state
*
mrb
,
FILE
*
fp
,
mrb_irep
*
irep
)
{
const
size_t
record_header_size
=
4
;
uint8_t
header
[
record_header_size
]
;
uint8_t
header
[
4
]
;
const
size_t
record_header_size
=
sizeof
(
header
)
;
int
result
;
size_t
i
,
buf_size
;
uint32_t
len
;
...
...
@@ -555,8 +555,8 @@ read_section_lineno_file(mrb_state *mrb, FILE *fp, mrb_irep *irep)
static
mrb_irep
*
read_irep_record_file
(
mrb_state
*
mrb
,
FILE
*
fp
)
{
const
size_t
record_header_size
=
1
+
4
;
uint8_t
header
[
record_header_size
]
;
uint8_t
header
[
1
+
4
]
;
const
size_t
record_header_size
=
sizeof
(
header
)
;
size_t
buf_size
,
i
;
uint32_t
len
;
mrb_irep
*
irep
=
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