mirror of
https://github.com/git/git.git
synced 2024-10-30 05:47:53 +01:00
mingw: squash another warning about a cast
MSys2's compiler is correct that casting a "void *" to a "DWORD" loses precision, but in the case of pthread_exit() we know that the value fits into a DWORD. Just like casting handles to DWORDs, let's work around this issue by casting to "intrptr_t" first, and immediately cast to the final type. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
7c00bc39eb
commit
83c90da3c1
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ extern pthread_t pthread_self(void);
|
|||
|
||||
static inline int pthread_exit(void *ret)
|
||||
{
|
||||
ExitThread((DWORD)ret);
|
||||
ExitThread((DWORD)(intptr_t)ret);
|
||||
}
|
||||
|
||||
typedef DWORD pthread_key_t;
|
||||
|
|
Loading…
Reference in a new issue