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
9b176207
Commit
9b176207
authored
Aug 15, 2014
by
Jun Hiroe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor flo_mod func in numeric.c
parent
8a2291b2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
src/numeric.c
src/numeric.c
+2
-3
No files found.
src/numeric.c
View file @
9b176207
...
...
@@ -337,12 +337,11 @@ static mrb_value
flo_mod
(
mrb_state
*
mrb
,
mrb_value
x
)
{
mrb_value
y
;
mrb_float
fy
,
mod
;
mrb_float
mod
;
mrb_get_args
(
mrb
,
"o"
,
&
y
);
fy
=
mrb_to_flo
(
mrb
,
y
);
flodivmod
(
mrb
,
mrb_float
(
x
),
fy
,
0
,
&
mod
);
flodivmod
(
mrb
,
mrb_float
(
x
),
mrb_to_flo
(
mrb
,
y
),
0
,
&
mod
);
return
mrb_float_value
(
mrb
,
mod
);
}
...
...
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