From f266d92286a19600f60911fe064f76d6b7048abe Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Tue, 7 Dec 2021 14:04:32 +0300 Subject: [PATCH] psp/SDL_sysjoystick.c: fix -Wshadow warnings. --- src/joystick/psp/SDL_sysjoystick.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/joystick/psp/SDL_sysjoystick.c b/src/joystick/psp/SDL_sysjoystick.c index a3b9bc5a2..2dfa8aac5 100644 --- a/src/joystick/psp/SDL_sysjoystick.c +++ b/src/joystick/psp/SDL_sysjoystick.c @@ -63,10 +63,10 @@ static point c = { 78, 32767 }; static point d = { 128, 32767 }; /* simple linear interpolation between two points */ -static SDL_INLINE void lerp (point *dest, point *a, point *b, float t) +static SDL_INLINE void lerp (point *dest, point *pt_a, point *pt_b, float t) { - dest->x = a->x + (b->x - a->x)*t; - dest->y = a->y + (b->y - a->y)*t; + dest->x = pt_a->x + (pt_b->x - pt_a->x)*t; + dest->y = pt_a->y + (pt_b->y - pt_a->y)*t; } /* evaluate a point on a bezier-curve. t goes from 0 to 1.0 */