mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-16 06:45:59 +00:00
Build with -Wfloat-conversion + fix all warnings
This commit is contained in:

committed by
GitHub

parent
17c459e384
commit
a919774fe4
@@ -206,7 +206,7 @@ static SDL_bool GetHIDScaledCalibratedState(recDevice *pDevice, recElement *pEle
|
||||
if (readScale == 0) {
|
||||
returnValue = SDL_TRUE; /* no scaling at all */
|
||||
} else {
|
||||
*pValue = ((*pValue - pElement->minReport) * deviceScale / readScale) + min;
|
||||
*pValue = (Sint32)(((*pValue - pElement->minReport) * deviceScale / readScale) + min);
|
||||
returnValue = SDL_TRUE;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user