diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-01-31 09:22:27 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-01-31 09:22:27 +0900 |
| commit | 10c2b7ee1c2783498efa14a41648cbd8a7a99453 (patch) | |
| tree | 2adcf532588ddb98e56837c0d4aafff35c5429c9 /src/symbol.c | |
| parent | f34623fb03d142e30a1b258dda857d7235401f7c (diff) | |
| download | mruby-10c2b7ee1c2783498efa14a41648cbd8a7a99453.tar.gz mruby-10c2b7ee1c2783498efa14a41648cbd8a7a99453.zip | |
Remove unnecessary use of `uint16_t` in `symbol.c`.
Diffstat (limited to 'src/symbol.c')
| -rw-r--r-- | src/symbol.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/symbol.c b/src/symbol.c index b8d0ea1e7..ad186dce3 100644 --- a/src/symbol.c +++ b/src/symbol.c @@ -48,14 +48,14 @@ sym_validate_len(mrb_state *mrb, size_t len) static const char pack_table[] = "_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; static mrb_sym -sym_inline_pack(const char *name, uint16_t len) +sym_inline_pack(const char *name, size_t len) { - const int lower_length_max = (MRB_SYMBOL_BIT - 2) / 5; - const int mix_length_max = (MRB_SYMBOL_BIT - 2) / 6; + const size_t lower_length_max = (MRB_SYMBOL_BIT - 2) / 5; + const size_t mix_length_max = (MRB_SYMBOL_BIT - 2) / 6; char c; const char *p; - int i; + size_t i; mrb_sym sym = 0; mrb_bool lower = TRUE; @@ -124,7 +124,7 @@ symhash(const char *key, size_t len) } 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; symbol_name *sname; |
