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
4dcc1819
Unverified
Commit
4dcc1819
authored
Sep 07, 2020
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Embed debug information to resolve Windows VC's issue.
parent
21ee56d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mrbgems/mruby-sprintf/src/sprintf.c
mrbgems/mruby-sprintf/src/sprintf.c
+3
-3
No files found.
mrbgems/mruby-sprintf/src/sprintf.c
View file @
4dcc1819
...
...
@@ -198,7 +198,7 @@ check_name_arg(mrb_state *mrb, int posarg, const char *name, size_t len)
#define GETNUM(n, val) do { \
if (!(p = get_num(mrb, p, end, &(n)))) \
mrb_raise(mrb, E_ARGUMENT_ERROR, #val " too big"); \
mrb_raise(mrb, E_ARGUMENT_ERROR, #val " too big
1
"); \
} while(0)
#define GETASTER(num) do { \
...
...
@@ -1082,7 +1082,7 @@ retry:
need
=
width
;
if
(
need
<
0
)
{
mrb_raise
(
mrb
,
E_ARGUMENT_ERROR
,
"width too big"
);
mrb_raise
(
mrb
,
E_ARGUMENT_ERROR
,
"width too big
2
"
);
}
FILL
(
' '
,
need
);
if
(
flags
&
FMINUS
)
{
...
...
@@ -1108,7 +1108,7 @@ retry:
if
(
need
>
MRB_INT_MAX
-
((
flags
&
FPREC
)
?
prec
:
6
))
{
too_big_width:
mrb_raise
(
mrb
,
E_ARGUMENT_ERROR
,
(
width
>
prec
?
"width too big"
:
"prec too big"
));
(
width
>
prec
?
"width too big
3
"
:
"prec too big"
));
}
need
+=
(
flags
&
FPREC
)
?
prec
:
6
;
if
((
flags
&
FWIDTH
)
&&
need
<
width
)
...
...
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