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
689541d0
Commit
689541d0
authored
Jul 19, 2014
by
take_cheeze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix type of argument passed to mrb_get_args.
parent
fa39825b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
src/file.c
src/file.c
+1
-1
src/io.c
src/io.c
+5
-3
No files found.
src/file.c
View file @
689541d0
...
@@ -86,7 +86,7 @@ mrb_file_s_unlink(mrb_state *mrb, mrb_value obj)
...
@@ -86,7 +86,7 @@ mrb_file_s_unlink(mrb_state *mrb, mrb_value obj)
{
{
mrb_value
*
argv
;
mrb_value
*
argv
;
mrb_value
pathv
;
mrb_value
pathv
;
int
argc
,
i
;
mrb_
int
argc
,
i
;
const
char
*
path
;
const
char
*
path
;
mrb_get_args
(
mrb
,
"*"
,
&
argv
,
&
argc
);
mrb_get_args
(
mrb
,
"*"
,
&
argv
,
&
argc
);
...
...
src/io.c
View file @
689541d0
...
@@ -398,7 +398,8 @@ mrb_io_sysread(mrb_state *mrb, mrb_value io)
...
@@ -398,7 +398,8 @@ mrb_io_sysread(mrb_state *mrb, mrb_value io)
{
{
struct
mrb_io
*
fptr
;
struct
mrb_io
*
fptr
;
mrb_value
buf
=
mrb_nil_value
();
mrb_value
buf
=
mrb_nil_value
();
int
maxlen
,
ret
;
mrb_int
maxlen
;
int
ret
;
mrb_get_args
(
mrb
,
"i|S"
,
&
maxlen
,
&
buf
);
mrb_get_args
(
mrb
,
"i|S"
,
&
maxlen
,
&
buf
);
if
(
maxlen
<
0
)
{
if
(
maxlen
<
0
)
{
...
@@ -439,7 +440,8 @@ mrb_value
...
@@ -439,7 +440,8 @@ mrb_value
mrb_io_sysseek
(
mrb_state
*
mrb
,
mrb_value
io
)
mrb_io_sysseek
(
mrb_state
*
mrb
,
mrb_value
io
)
{
{
struct
mrb_io
*
fptr
;
struct
mrb_io
*
fptr
;
int
pos
,
offset
,
whence
=
-
1
;
int
pos
;
mrb_int
offset
,
whence
=
-
1
;
mrb_get_args
(
mrb
,
"i|i"
,
&
offset
,
&
whence
);
mrb_get_args
(
mrb
,
"i|i"
,
&
offset
,
&
whence
);
if
(
whence
<
0
)
{
if
(
whence
<
0
)
{
...
@@ -558,7 +560,7 @@ static mrb_value
...
@@ -558,7 +560,7 @@ static mrb_value
mrb_io_s_select
(
mrb_state
*
mrb
,
mrb_value
klass
)
mrb_io_s_select
(
mrb_state
*
mrb
,
mrb_value
klass
)
{
{
mrb_value
*
argv
;
mrb_value
*
argv
;
int
argc
;
mrb_
int
argc
;
mrb_value
read
,
read_io
,
write
,
except
,
timeout
,
list
;
mrb_value
read
,
read_io
,
write
,
except
,
timeout
,
list
;
struct
timeval
*
tp
,
timerec
;
struct
timeval
*
tp
,
timerec
;
fd_set
pset
,
rset
,
wset
,
eset
;
fd_set
pset
,
rset
,
wset
,
eset
;
...
...
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