summaryrefslogtreecommitdiffhomepage
path: root/src/dump.c
diff options
context:
space:
mode:
authorTomasz Dąbrowski <[email protected]>2017-09-25 16:03:25 +0200
committerTomasz Dabrowski <[email protected]>2017-09-27 22:22:04 +0200
commitf4a17dd7b52aa07110a45e94f2428876da604d1f (patch)
treecd473b733be0c28fc0079b7bc984597b8d6015e7 /src/dump.c
parent5ed76e381c10374baec5baef7f08bf7195f1eacb (diff)
downloadmruby-f4a17dd7b52aa07110a45e94f2428876da604d1f.tar.gz
mruby-f4a17dd7b52aa07110a45e94f2428876da604d1f.zip
fix: src\dump.c(657): warning C4244: 'function': conversion from 'mrb_int' to 'uint16_t', possible loss of data
Diffstat (limited to 'src/dump.c')
-rw-r--r--src/dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dump.c b/src/dump.c
index d479a1a4f..822f1d3be 100644
--- a/src/dump.c
+++ b/src/dump.c
@@ -654,7 +654,7 @@ write_section_debug(mrb_state *mrb, mrb_irep *irep, uint8_t *cur, mrb_sym const
for (i = 0; i < filenames_len; ++i) {
sym = mrb_sym2name_len(mrb, filenames[i], &sym_len);
mrb_assert(sym);
- cur += uint16_to_bin(sym_len, cur);
+ cur += uint16_to_bin((uint16_t)sym_len, cur);
memcpy(cur, sym, sym_len);
cur += sym_len;
section_size += sizeof(uint16_t) + sym_len;