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
61a8a618
Commit
61a8a618
authored
Mar 27, 2013
by
Carson McDonald
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use mrb_check_datatype directly to avoid warning.
parent
6e48f272
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mrbgems/mruby-random/src/random.c
mrbgems/mruby-random/src/random.c
+1
-1
No files found.
mrbgems/mruby-random/src/random.c
View file @
61a8a618
...
@@ -29,7 +29,7 @@ static mt_state *mrb_mt_get_context(mrb_state *mrb, mrb_value self)
...
@@ -29,7 +29,7 @@ static mt_state *mrb_mt_get_context(mrb_state *mrb, mrb_value self)
mrb_value
context
;
mrb_value
context
;
context
=
mrb_iv_get
(
mrb
,
self
,
mrb_intern
(
mrb
,
MT_STATE_KEY
));
context
=
mrb_iv_get
(
mrb
,
self
,
mrb_intern
(
mrb
,
MT_STATE_KEY
));
Data_Get_Struct
(
mrb
,
context
,
&
mt_state_type
,
t
);
t
=
(
mt_state
*
)
mrb_check_datatype
(
mrb
,
context
,
&
mt_state_type
);
if
(
!
t
)
if
(
!
t
)
mrb_raise
(
mrb
,
E_RUNTIME_ERROR
,
"mt_state get from mrb_iv_get failed"
);
mrb_raise
(
mrb
,
E_RUNTIME_ERROR
,
"mt_state get from mrb_iv_get failed"
);
...
...
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