Skip to content

Commit

Permalink
Fix Wcast-qual warning on windows (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
e-kud authored Oct 28, 2024
1 parent 5907ac1 commit 9228024
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions loader/windows/icd_windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ static WinLayer* pWinLayerCapacity;

static int __cdecl compareLayer(const void *a, const void *b)
{
return ((WinLayer *)a)->priority < ((WinLayer *)b)->priority ? -1 :
((WinLayer *)a)->priority > ((WinLayer *)b)->priority ? 1 : 0;
return ((const WinLayer *)a)->priority < ((const WinLayer *)b)->priority ? -1 :
((const WinLayer *)a)->priority > ((const WinLayer *)b)->priority ? 1 : 0;
}

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

0 comments on commit 9228024

Please sign in to comment.