diff --git a/compat/realpath.c b/compat/realpath.c index ac1f9f6214..0bcd4fff68 100644 --- a/compat/realpath.c +++ b/compat/realpath.c @@ -37,7 +37,7 @@ char *realpath(const char * restrict relpath, char * restrict resolved_path) } #ifdef _WIN32 - size_t len = MultiByteToWideChar( CP_UTF8, 0, relpath, -1, NULL, 0 ); + int len = MultiByteToWideChar( CP_UTF8, 0, relpath, -1, NULL, 0 ); if (len == 0) return NULL;