mirror of
https://github.com/holub/mame
synced 2025-07-05 18:08:04 +03:00
Try to fix osx compile
This commit is contained in:
parent
92326e47af
commit
b0403c0e3d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user