]> code.delx.au - pong/commitdiff
Fixed warning about fmax
authorJames Bunton <jamesbunton@fastmail.fm>
Mon, 25 Jun 2007 15:42:09 +0000 (15:42 +0000)
committerJames Bunton <jamesbunton@fastmail.fm>
Mon, 25 Jun 2007 15:42:09 +0000 (15:42 +0000)
pong.c

diff --git a/pong.c b/pong.c
index 4ecaa8a3664e024c3746556efc315ef90cde4e6f..8cf082ba55fe51a67b9c06ddb2daa2beedc1ebf9 100644 (file)
--- a/pong.c
+++ b/pong.c
@@ -38,6 +38,10 @@ static GLdouble ballVecX = 0.0;
 static GLdouble ballVecY = 0.0;
 
 
 static GLdouble ballVecY = 0.0;
 
 
+static inline double fmax(double a, double b) {
+       return a > b ? a : b;
+}
+
 static void initBall(void) {
        ballX = 0.0;
        ballY = 0.0;
 static void initBall(void) {
        ballX = 0.0;
        ballY = 0.0;