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
6fe03f3b
Unverified
Commit
6fe03f3b
authored
Jun 04, 2020
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add explicit cast to silence warnings on AppVeyor.
parent
41f3456a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
mrbgems/mruby-method/src/method.c
mrbgems/mruby-method/src/method.c
+1
-1
mrbgems/mruby-rational/src/rational.c
mrbgems/mruby-rational/src/rational.c
+3
-3
No files found.
mrbgems/mruby-method/src/method.c
View file @
6fe03f3b
...
@@ -110,7 +110,7 @@ method_eql(mrb_state *mrb, mrb_value self)
...
@@ -110,7 +110,7 @@ method_eql(mrb_state *mrb, mrb_value self)
static
mrb_value
static
mrb_value
mcall
(
mrb_state
*
mrb
,
mrb_value
recv
,
mrb_value
proc
,
mrb_value
name
,
struct
RClass
*
owner
,
mcall
(
mrb_state
*
mrb
,
mrb_value
recv
,
mrb_value
proc
,
mrb_value
name
,
struct
RClass
*
owner
,
int
argc
,
mrb_value
*
argv
,
mrb_value
block
)
mrb_
int
argc
,
mrb_value
*
argv
,
mrb_value
block
)
{
{
mrb_value
ret
;
mrb_value
ret
;
mrb_sym
orig_mid
=
mrb
->
c
->
ci
->
mid
;
mrb_sym
orig_mid
=
mrb
->
c
->
ci
->
mid
;
...
...
mrbgems/mruby-rational/src/rational.c
View file @
6fe03f3b
...
@@ -112,7 +112,7 @@ rational_s_new(mrb_state *mrb, mrb_value self)
...
@@ -112,7 +112,7 @@ rational_s_new(mrb_state *mrb, mrb_value self)
mrb_float
denomf
=
mrb_to_flo
(
mrb
,
denomv
);
mrb_float
denomf
=
mrb_to_flo
(
mrb
,
denomv
);
DROP_PRECISION
(
denomf
<
MRB_INT_MIN
||
denomf
>
MRB_INT_MAX
,
numerator
,
denomf
);
DROP_PRECISION
(
denomf
<
MRB_INT_MIN
||
denomf
>
MRB_INT_MAX
,
numerator
,
denomf
);
denominator
=
denomf
;
denominator
=
(
mrb_int
)
denomf
;
}
}
}
}
else
{
else
{
...
@@ -125,11 +125,11 @@ rational_s_new(mrb_state *mrb, mrb_value self)
...
@@ -125,11 +125,11 @@ rational_s_new(mrb_state *mrb, mrb_value self)
mrb_float
denomf
=
mrb_to_flo
(
mrb
,
denomv
);
mrb_float
denomf
=
mrb_to_flo
(
mrb
,
denomv
);
DROP_PRECISION
(
denomf
<
MRB_INT_MIN
||
denomf
>
MRB_INT_MAX
,
numf
,
denomf
);
DROP_PRECISION
(
denomf
<
MRB_INT_MIN
||
denomf
>
MRB_INT_MAX
,
numf
,
denomf
);
denominator
=
denomf
;
denominator
=
(
mrb_int
)
denomf
;
}
}
DROP_PRECISION
(
numf
<
MRB_INT_MIN
||
numf
>
MRB_INT_MAX
,
numf
,
denominator
);
DROP_PRECISION
(
numf
<
MRB_INT_MIN
||
numf
>
MRB_INT_MAX
,
numf
,
denominator
);
numerator
=
numf
;
numerator
=
(
mrb_int
)
numf
;
}
}
#endif
#endif
...
...
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