From 1310368b3f78e9304b7231eb1d6408842340c6cf Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Tue, 12 Jan 2021 16:25:30 +0900 Subject: Silence Windows warnings (cast and `setmode`). --- src/load.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/load.c') diff --git a/src/load.c b/src/load.c index 1ab8c1ad6..0b98fba66 100644 --- a/src/load.c +++ b/src/load.c @@ -96,7 +96,7 @@ read_irep_record_1(mrb_state *mrb, const uint8_t *bin, size_t *len, uint8_t flag src += sizeof(uint16_t); /* number of child irep */ - irep->rlen = (size_t)bin_to_uint16(src); + irep->rlen = (uint8_t)bin_to_uint16(src); src += sizeof(uint16_t); /* Binary Data Section */ -- cgit v1.2.3