Skip to content

Commit 9228024

Browse files
authored
Fix Wcast-qual warning on windows (#244)
1 parent 5907ac1 commit 9228024

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

loader/windows/icd_windows.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ static WinLayer* pWinLayerCapacity;
111111

112112
static int __cdecl compareLayer(const void *a, const void *b)
113113
{
114-
return ((WinLayer *)a)->priority < ((WinLayer *)b)->priority ? -1 :
115-
((WinLayer *)a)->priority > ((WinLayer *)b)->priority ? 1 : 0;
114+
return ((const WinLayer *)a)->priority < ((const WinLayer *)b)->priority ? -1 :
115+
((const WinLayer *)a)->priority > ((const WinLayer *)b)->priority ? 1 : 0;
116116
}
117117

118118
static BOOL layerAdd(const char* szName, DWORD priority)

0 commit comments

Comments
 (0)