Fixed build warnings
authorSam Lantinga <slouken@libsdl.org>
Mon, 02 Mar 2020 09:03:55 -0800
changeset 13567e5e55d467f7e
parent 13566 ce2a5b5660fe
child 13568 2c4ec356333e
Fixed build warnings
src/events/SDL_events.c
     1.1 --- a/src/events/SDL_events.c	Sun Mar 01 18:16:15 2020 -0800
     1.2 +++ b/src/events/SDL_events.c	Mon Mar 02 09:03:55 2020 -0800
     1.3 @@ -278,7 +278,7 @@
     1.4          #undef PRINT_CONTROLLERDEV_EVENT
     1.5  
     1.6          #define PRINT_FINGER_EVENT(event) \
     1.7 -            SDL_snprintf(details, sizeof (details), " (timestamp=%u touchid=%"SDL_PRIs64" fingerid=%"SDL_PRIs64" x=%f y=%f dx=%f dy=%f pressure=%f)", \
     1.8 +            SDL_snprintf(details, sizeof (details), " (timestamp=%u touchid=%lld fingerid=%lld x=%f y=%f dx=%f dy=%f pressure=%f)", \
     1.9                  (uint) event->tfinger.timestamp, (long long)event->tfinger.touchId, \
    1.10                  (long long)event->tfinger.fingerId, event->tfinger.x, event->tfinger.y, \
    1.11                  event->tfinger.dx, event->tfinger.dy, event->tfinger.pressure)
    1.12 @@ -288,7 +288,7 @@
    1.13          #undef PRINT_FINGER_EVENT
    1.14  
    1.15          #define PRINT_DOLLAR_EVENT(event) \
    1.16 -            SDL_snprintf(details, sizeof (details), " (timestamp=%u touchid=%"SDL_PRIs64" gestureid=%"SDL_PRIs64" numfingers=%u error=%f x=%f y=%f)", \
    1.17 +            SDL_snprintf(details, sizeof (details), " (timestamp=%u touchid=%lld gestureid=%lld numfingers=%u error=%f x=%f y=%f)", \
    1.18                  (uint) event->dgesture.timestamp, (long long)event->dgesture.touchId, \
    1.19                  (long long)event->dgesture.gestureId, (uint) event->dgesture.numFingers, \
    1.20                  event->dgesture.error, event->dgesture.x, event->dgesture.y);
    1.21 @@ -297,7 +297,7 @@
    1.22          #undef PRINT_DOLLAR_EVENT
    1.23  
    1.24          SDL_EVENT_CASE(SDL_MULTIGESTURE)
    1.25 -            SDL_snprintf(details, sizeof (details), " (timestamp=%u touchid=%"SDL_PRIs64" dtheta=%f ddist=%f x=%f y=%f numfingers=%u)",
    1.26 +            SDL_snprintf(details, sizeof (details), " (timestamp=%u touchid=%lld dtheta=%f ddist=%f x=%f y=%f numfingers=%u)",
    1.27                  (uint) event->mgesture.timestamp, (long long)event->mgesture.touchId,
    1.28                  event->mgesture.dTheta, event->mgesture.dDist,
    1.29                  event->mgesture.x, event->mgesture.y, (uint) event->mgesture.numFingers);