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
46ee8835
Commit
46ee8835
authored
Feb 23, 2014
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move declaration to the top of the block; ref #1727
parent
e202d4cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
src/error.h
src/error.h
+2
-0
src/numeric.c
src/numeric.c
+1
-1
No files found.
src/error.h
View file @
46ee8835
/* this header file is to be removed soon.
added for compatibility purpose (1.0.0) */
#include "mruby/error.h"
src/numeric.c
View file @
46ee8835
...
...
@@ -136,6 +136,7 @@ mrb_flo_to_str(mrb_state *mrb, mrb_value flo)
mrb_bool
e
=
FALSE
;
char
s
[
48
];
char
*
c
=
&
s
[
0
];
int
length
=
0
;
if
(
n
<
0
)
{
n
=
-
n
;
...
...
@@ -145,7 +146,6 @@ mrb_flo_to_str(mrb_state *mrb, mrb_value flo)
exp
=
(
n
>
1
)
?
floor
(
log10
(
n
))
:
-
ceil
(
-
log10
(
n
));
/* preserve significands */
int
length
=
0
;
if
(
exp
<
0
)
{
int
i
,
beg
=
-
1
,
end
=
0
;
double
f
=
n
;
...
...
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