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 4ecaa8a..8cf082b 100644 (file)
--- a/pong.c
+++ b/pong.c
@@ -38,6 +38,10 @@ static GLdouble ballVecX = 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;