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
ec45dbe1
Commit
ec45dbe1
authored
Jul 11, 2014
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove spaces after open parens
parent
e79478d0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
mrbgems/mruby-random/src/random.c
mrbgems/mruby-random/src/random.c
+1
-1
mrbgems/mruby-sprintf/src/sprintf.c
mrbgems/mruby-sprintf/src/sprintf.c
+1
-1
src/numeric.c
src/numeric.c
+1
-1
No files found.
mrbgems/mruby-random/src/random.c
View file @
ec45dbe1
...
@@ -46,7 +46,7 @@ mrb_random_mt_srand(mrb_state *mrb, mt_state *t, mrb_value seed)
...
@@ -46,7 +46,7 @@ mrb_random_mt_srand(mrb_state *mrb, mt_state *t, mrb_value seed)
if
(
mrb_nil_p
(
seed
))
{
if
(
mrb_nil_p
(
seed
))
{
seed
=
mrb_fixnum_value
((
mrb_int
)(
time
(
NULL
)
+
mt_rand
(
t
)));
seed
=
mrb_fixnum_value
((
mrb_int
)(
time
(
NULL
)
+
mt_rand
(
t
)));
if
(
mrb_fixnum
(
seed
)
<
0
)
{
if
(
mrb_fixnum
(
seed
)
<
0
)
{
seed
=
mrb_fixnum_value
(
0
-
mrb_fixnum
(
seed
));
seed
=
mrb_fixnum_value
(
0
-
mrb_fixnum
(
seed
));
}
}
}
}
...
...
mrbgems/mruby-sprintf/src/sprintf.c
View file @
ec45dbe1
...
@@ -836,7 +836,7 @@ retry:
...
@@ -836,7 +836,7 @@ retry:
if
(
base
==
2
)
{
if
(
base
==
2
)
{
org_v
=
v
;
org_v
=
v
;
if
(
v
<
0
&&
!
sign
)
{
if
(
v
<
0
&&
!
sign
)
{
val
=
mrb_fix2binstr
(
mrb
,
mrb_fixnum_value
(
v
),
base
);
val
=
mrb_fix2binstr
(
mrb
,
mrb_fixnum_value
(
v
),
base
);
dots
=
1
;
dots
=
1
;
}
}
...
...
src/numeric.c
View file @
ec45dbe1
...
@@ -474,7 +474,7 @@ flo_infinite_p(mrb_state *mrb, mrb_value num)
...
@@ -474,7 +474,7 @@ flo_infinite_p(mrb_state *mrb, mrb_value num)
mrb_float
value
=
mrb_float
(
num
);
mrb_float
value
=
mrb_float
(
num
);
if
(
isinf
(
value
))
{
if
(
isinf
(
value
))
{
return
mrb_fixnum_value
(
value
<
0
?
-
1
:
1
);
return
mrb_fixnum_value
(
value
<
0
?
-
1
:
1
);
}
}
return
mrb_nil_value
();
return
mrb_nil_value
();
}
}
...
...
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