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
7c496123
Commit
7c496123
authored
Mar 12, 2014
by
take_cheeze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix mrb_funcall calling
parent
fee63977
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
mrbgems/mruby-struct/src/struct.c
mrbgems/mruby-struct/src/struct.c
+1
-1
src/hash.c
src/hash.c
+1
-1
src/object.c
src/object.c
+1
-1
No files found.
mrbgems/mruby-struct/src/struct.c
View file @
7c496123
...
...
@@ -381,7 +381,7 @@ mrb_struct_s_def(mrb_state *mrb, mrb_value klass)
}
st
=
make_struct
(
mrb
,
name
,
rest
,
struct_class
(
mrb
));
if
(
!
mrb_nil_p
(
b
))
{
mrb_funcall
(
mrb
,
b
,
"call"
,
1
,
&
st
);
mrb_funcall
(
mrb
,
b
,
"call"
,
1
,
st
);
}
return
st
;
...
...
src/hash.c
View file @
7c496123
...
...
@@ -18,7 +18,7 @@ mrb_hash_ht_hash_func(mrb_state *mrb, mrb_value key)
khint_t
h
=
(
khint_t
)
mrb_type
(
key
)
<<
24
;
mrb_value
h2
;
h2
=
mrb_funcall
(
mrb
,
key
,
"hash"
,
0
,
0
);
h2
=
mrb_funcall
(
mrb
,
key
,
"hash"
,
0
);
h
^=
h2
.
value
.
i
;
return
h
;
}
...
...
src/object.c
View file @
7c496123
...
...
@@ -588,7 +588,7 @@ mrb_Float(mrb_state *mrb, mrb_value val)
mrb_value
mrb_inspect
(
mrb_state
*
mrb
,
mrb_value
obj
)
{
return
mrb_obj_as_string
(
mrb
,
mrb_funcall
(
mrb
,
obj
,
"inspect"
,
0
,
0
));
return
mrb_obj_as_string
(
mrb
,
mrb_funcall
(
mrb
,
obj
,
"inspect"
,
0
));
}
mrb_bool
...
...
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