Skip to content

Commit

Permalink
Fixed compiler warning - HRESULT is set to FFERR_* values, but is an int
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jun 25, 2014
1 parent a8955f2 commit 724d938
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/haptic/darwin/SDL_syshaptic.c
Expand Up @@ -91,14 +91,14 @@ static int numhaptics = -1;
* Like strerror but for force feedback errors.
*/
static const char *
FFStrError(HRESULT err)
FFStrError(unsigned int err)
{
switch (err) {
case FFERR_DEVICEFULL:
return "device full";
/* This should be valid, but for some reason isn't defined... */
/* case FFERR_DEVICENOTREG:
return "device not registered"; */
/* This should be valid, but for some reason isn't defined... */
/* case FFERR_DEVICENOTREG:
return "device not registered"; */
case FFERR_DEVICEPAUSED:
return "device paused";
case FFERR_DEVICERELEASED:
Expand Down

0 comments on commit 724d938

Please sign in to comment.