diff options
| author | Ahmad Fatoum <ahmad@a3f.at> | 2017-10-12 19:51:21 +0200 |
|---|---|---|
| committer | Ahmad Fatoum <ahmad@a3f.at> | 2017-10-12 19:51:21 +0200 |
| commit | cd6d752217c9ee2af52f55daf1fea73c0da09a84 (patch) | |
| tree | 74acf6d9f2fd3518e3f794cfb661ec90134aa17f /src | |
| parent | 8928248c71ad12854e69060a8f2a9d0e615053f3 (diff) | |
| download | raylib-cd6d752217c9ee2af52f55daf1fea73c0da09a84.tar.gz raylib-cd6d752217c9ee2af52f55daf1fea73c0da09a84.zip | |
Fix warning about unsequenced modification of variable
Variable t was read and modified without interleaving sequence points,
technically undefined behavior. Report by Clang's -Wunsequenced
Diffstat (limited to 'src')
| -rw-r--r-- | src/shapes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shapes.c b/src/shapes.c index 8197735f..63993469 100644 --- a/src/shapes.c +++ b/src/shapes.c @@ -683,5 +683,5 @@ Rectangle GetCollisionRec(Rectangle rec1, Rectangle rec2) static float EaseCubicInOut(float t, float b, float c, float d) { if ((t/=d/2) < 1) return (c/2*t*t*t + b); - return (c/2*((t-=2)*t*t + 2) + b); -}
\ No newline at end of file + return (c/2*((t-2)*t*t + 2) + b); +} |
