Commit 6a923999 by Scott J. Goldman

Merge pull request #781 from liyuray/development

fix crash issue on mingw caused by variable argument list type promotion.
parents 9311423c dfa0b65c
...@@ -232,7 +232,7 @@ int p_open(const char *path, int flags, ...) ...@@ -232,7 +232,7 @@ int p_open(const char *path, int flags, ...)
va_list arg_list; va_list arg_list;
va_start(arg_list, flags); va_start(arg_list, flags);
mode = va_arg(arg_list, mode_t); mode = (mode_t)va_arg(arg_list, int);
va_end(arg_list); va_end(arg_list);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment