From e663a4e41c83cc77a159fa262eeb731d8e5d2541 Mon Sep 17 00:00:00 2001 From: OBattler Date: Sun, 19 Jul 2020 23:50:47 +0200 Subject: [PATCH] More MO fixes. --- src/disk/mo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/disk/mo.c b/src/disk/mo.c index feefe881b..3841e103c 100644 --- a/src/disk/mo.c +++ b/src/disk/mo.c @@ -346,7 +346,8 @@ image_is_mdi(const wchar_t *s) int mo_load(mo_t *dev, wchar_t *fn) { - int is_mdi, size = 0; + int is_mdi; + uint32_t size = 0; unsigned int i, found = 0; is_mdi = image_is_mdi(fn); @@ -1037,7 +1038,7 @@ mo_insert(mo_t *dev) void mo_format(mo_t *dev) { - long size; + unsigned long size; int ret; int fd;