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
10c2b7ee
Commit
10c2b7ee
authored
Jan 31, 2020
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary use of `uint16_t` in `symbol.c`.
parent
f34623fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/symbol.c
src/symbol.c
+5
-5
No files found.
src/symbol.c
View file @
10c2b7ee
...
@@ -48,14 +48,14 @@ sym_validate_len(mrb_state *mrb, size_t len)
...
@@ -48,14 +48,14 @@ sym_validate_len(mrb_state *mrb, size_t len)
static
const
char
pack_table
[]
=
"_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
;
static
const
char
pack_table
[]
=
"_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
;
static
mrb_sym
static
mrb_sym
sym_inline_pack
(
const
char
*
name
,
uint16
_t
len
)
sym_inline_pack
(
const
char
*
name
,
size
_t
len
)
{
{
const
in
t
lower_length_max
=
(
MRB_SYMBOL_BIT
-
2
)
/
5
;
const
size_
t
lower_length_max
=
(
MRB_SYMBOL_BIT
-
2
)
/
5
;
const
in
t
mix_length_max
=
(
MRB_SYMBOL_BIT
-
2
)
/
6
;
const
size_
t
mix_length_max
=
(
MRB_SYMBOL_BIT
-
2
)
/
6
;
char
c
;
char
c
;
const
char
*
p
;
const
char
*
p
;
in
t
i
;
size_
t
i
;
mrb_sym
sym
=
0
;
mrb_sym
sym
=
0
;
mrb_bool
lower
=
TRUE
;
mrb_bool
lower
=
TRUE
;
...
@@ -124,7 +124,7 @@ symhash(const char *key, size_t len)
...
@@ -124,7 +124,7 @@ symhash(const char *key, size_t len)
}
}
static
mrb_sym
static
mrb_sym
find_symbol
(
mrb_state
*
mrb
,
const
char
*
name
,
uint16
_t
len
,
uint8_t
*
hashp
)
find_symbol
(
mrb_state
*
mrb
,
const
char
*
name
,
size
_t
len
,
uint8_t
*
hashp
)
{
{
mrb_sym
i
;
mrb_sym
i
;
symbol_name
*
sname
;
symbol_name
*
sname
;
...
...
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