Fixed compiler warning - HRESULT is set to FFERR_* values, but is an int
authorSam Lantinga
Wed, 25 Jun 2014 01:43:58 -0700
changeset 89258469a1c3e484
parent 8924 b80cdf666e91
child 8926 38e89ab78465
Fixed compiler warning - HRESULT is set to FFERR_* values, but is an int
src/haptic/darwin/SDL_syshaptic.c
     1.1 --- a/src/haptic/darwin/SDL_syshaptic.c	Wed Jun 25 01:35:17 2014 -0700
     1.2 +++ b/src/haptic/darwin/SDL_syshaptic.c	Wed Jun 25 01:43:58 2014 -0700
     1.3 @@ -91,14 +91,14 @@
     1.4   * Like strerror but for force feedback errors.
     1.5   */
     1.6  static const char *
     1.7 -FFStrError(HRESULT err)
     1.8 +FFStrError(unsigned int err)
     1.9  {
    1.10      switch (err) {
    1.11      case FFERR_DEVICEFULL:
    1.12          return "device full";
    1.13 -        /* This should be valid, but for some reason isn't defined... */
    1.14 -        /* case FFERR_DEVICENOTREG:
    1.15 -           return "device not registered"; */
    1.16 +    /* This should be valid, but for some reason isn't defined... */
    1.17 +    /* case FFERR_DEVICENOTREG:
    1.18 +        return "device not registered"; */
    1.19      case FFERR_DEVICEPAUSED:
    1.20          return "device paused";
    1.21      case FFERR_DEVICERELEASED: