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
1d3f4b3f
Commit
1d3f4b3f
authored
Dec 01, 2012
by
Yukihiro Matz Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos: invalide -> invalid; patch from @darashi; close #577
parent
2ea245db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/class.c
src/class.c
+1
-1
src/string.c
src/string.c
+2
-2
No files found.
src/class.c
View file @
1d3f4b3f
...
...
@@ -630,7 +630,7 @@ mrb_get_args(mrb_state *mrb, const char *format, ...)
}
break
;
default:
mrb_raisef
(
mrb
,
E_ARGUMENT_ERROR
,
"invalid
e
argument specifier %c"
,
c
);
mrb_raisef
(
mrb
,
E_ARGUMENT_ERROR
,
"invalid argument specifier %c"
,
c
);
break
;
}
}
...
...
src/string.c
View file @
1d3f4b3f
...
...
@@ -2511,7 +2511,7 @@ mrb_cstr_to_inum(mrb_state *mrb, const char *str, int base, int badcheck)
return
mrb_fixnum_value
(
result
);
}
bad:
mrb_raisef
(
mrb
,
E_ARGUMENT_ERROR
,
"invalid
e
string for number(%s)"
,
str
);
mrb_raisef
(
mrb
,
E_ARGUMENT_ERROR
,
"invalid string for number(%s)"
,
str
);
/* not reached */
return
mrb_fixnum_value
(
0
);
}
...
...
@@ -2621,7 +2621,7 @@ mrb_cstr_to_dbl(mrb_state *mrb, const char * p, int badcheck)
if
(
p
==
end
)
{
if
(
badcheck
)
{
bad:
mrb_raisef
(
mrb
,
E_ARGUMENT_ERROR
,
"invalid
e
string for float(%s)"
,
p
);
mrb_raisef
(
mrb
,
E_ARGUMENT_ERROR
,
"invalid string for float(%s)"
,
p
);
/* not reached */
}
return
d
;
...
...
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