Skip to content

Commit 37df363

Browse files
committed
CPUInfo -- signed or unsigned? It is a mystery.
1 parent 2279458 commit 37df363

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Engine/Zoom.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,11 +571,11 @@ static int zoomSurface2X_SSE2(SDL_Surface *src, SDL_Surface *dst)
571571
*/
572572
bool Zoom::haveSSE2()
573573
{
574-
int CPUInfo[4];
575-
576574
#ifdef __GNUC__
575+
unsigned int CPUInfo[4];
577576
__get_cpuid(1, CPUInfo, CPUInfo+1, CPUInfo+2, CPUInfo+3);
578577
#elif _WIN32
578+
int CPUInfo[4];
579579
__cpuid(CPUInfo, 1);
580580
#else
581581
return false;

0 commit comments

Comments
 (0)