Skip to content
Permalink
Browse files

Fixed compiler warning - HRESULT is set to FFERR_* values, but is an int

  • Loading branch information
slouken committed Jun 25, 2014
1 parent a8955f2 commit 724d9380ba1efd723e1d760758b9257e38a66638
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/haptic/darwin/SDL_syshaptic.c
@@ -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:

0 comments on commit 724d938

Please sign in to comment.