diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-07-16 06:36:47 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-07-16 06:36:47 +0900 |
| commit | 8e10a026e61246401f035dec50943d16e99fb70d (patch) | |
| tree | 8b2c68435f89c9adfff55dd6665b0cc32b0ee65f /mrbgems | |
| parent | d7f9d71ea55d08bab1d1ca5a66e33f2512bbe691 (diff) | |
| parent | acad9567c16317a86d7e246d6093a43d3a58c758 (diff) | |
| download | mruby-8e10a026e61246401f035dec50943d16e99fb70d.tar.gz mruby-8e10a026e61246401f035dec50943d16e99fb70d.zip | |
Merge pull request #4580 from shuujii/unify-type-of-line-number-to-uint16_t
Unify type of line number to `uint16_t`
Diffstat (limited to 'mrbgems')
| -rw-r--r-- | mrbgems/mruby-compiler/core/parse.y | 2 | ||||
| -rw-r--r-- | mrbgems/mruby-eval/src/eval.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-compiler/core/parse.y b/mrbgems/mruby-compiler/core/parse.y index 96a9453b6..ac59a8b0b 100644 --- a/mrbgems/mruby-compiler/core/parse.y +++ b/mrbgems/mruby-compiler/core/parse.y @@ -233,7 +233,7 @@ parser_strdup(parser_state *p, const char *s) #define strdup(s) parser_strdup(p, s) static void -dump_int(short i, char *s) +dump_int(uint16_t i, char *s) { char *p = s; char *t = s; diff --git a/mrbgems/mruby-eval/src/eval.c b/mrbgems/mruby-eval/src/eval.c index a3b211ba2..30534aaec 100644 --- a/mrbgems/mruby-eval/src/eval.c +++ b/mrbgems/mruby-eval/src/eval.c @@ -235,7 +235,7 @@ create_proc_from_string(mrb_state *mrb, char *s, mrb_int len, mrb_value binding, } cxt = mrbc_context_new(mrb); - cxt->lineno = (short)line; + cxt->lineno = (uint16_t)line; mrbc_filename(mrb, cxt, file ? file : "(eval)"); cxt->capture_errors = TRUE; |
