mirror of
https://git.proxmox.com/git/libgit2
synced 2026-02-01 19:03:40 +00:00
Merge pull request #781 from liyuray/development
fix crash issue on mingw caused by variable argument list type promotion.
This commit is contained in:
commit
6a9239990a
@ -232,7 +232,7 @@ int p_open(const char *path, int flags, ...)
|
||||
va_list arg_list;
|
||||
|
||||
va_start(arg_list, flags);
|
||||
mode = va_arg(arg_list, mode_t);
|
||||
mode = (mode_t)va_arg(arg_list, int);
|
||||
va_end(arg_list);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user