diff options
author | 2021-03-05 11:34:43 +0100 | |
---|---|---|
committer | 2021-03-05 11:37:27 +0100 | |
commit | b0403c0e3d6e899b35359381626f0e6e30cbec27 (patch) | |
tree | eb6c0fcd60c2b0a5ca31aaac0b1ba160f7aaa778 /src/tools/floptool.cpp | |
parent | 92326e47afea2dd65ec6b5ec842454fc74f046cc (diff) |
Try to fix osx compile
Diffstat (limited to 'src/tools/floptool.cpp')
-rw-r--r-- | src/tools/floptool.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/floptool.cpp b/src/tools/floptool.cpp index bfd049def95..0f92ea1659a 100644 --- a/src/tools/floptool.cpp +++ b/src/tools/floptool.cpp @@ -82,7 +82,7 @@ static int ram_seekproc(void *file, int64_t offset, int whence) static size_t ram_readproc(void *file, void *buffer, size_t length) { auto f = (iofile_ram *)file; - size_t l = std::min(length, f->data->size() - f->pos); + size_t l = std::min(length, size_t(f->data->size() - f->pos)); memcpy(buffer, f->data->data() + f->pos, l); return l; } @@ -90,7 +90,7 @@ static size_t ram_readproc(void *file, void *buffer, size_t length) static size_t ram_writeproc(void *file, const void *buffer, size_t length) { auto f = (iofile_ram *)file; - size_t l = std::min(length, f->data->size() - f->pos); + size_t l = std::min(length, size_t(f->data->size() - f->pos)); memcpy(f->data->data() + f->pos, buffer, l); return l; } |