diff --git a/file_path.c b/file_path.c index 29471b78fc..2884b2e0a0 100644 --- a/file_path.c +++ b/file_path.c @@ -70,7 +70,7 @@ bool write_file(const char *path, const void *data, size_t size) } // Generic file loader. -ssize_t read_file(const char *path, void **buf) +size_t read_file(const char *path, void **buf) { void *rom_buf = NULL; FILE *file = fopen(path, "rb"); diff --git a/file_path.h b/file_path.h index 4dd266cbe4..bb8c4623d7 100644 --- a/file_path.h +++ b/file_path.h @@ -11,7 +11,7 @@ extern "C" { #endif -ssize_t read_file(const char *path, void **buf); +size_t read_file(const char *path, void **buf); bool read_file_string(const char *path, char **buf); bool write_file(const char *path, const void *buf, size_t size);