Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fixed compiler warning - HRESULT is set to FFERR_* values, but is an int
- Loading branch information
Showing
with
4 additions
and
4 deletions.
-
+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: |
|
|