Module Name:    src
Committed By:   mrg
Date:           Sun Jul  3 06:44:02 UTC 2011

Modified Files:
        src/games/trek: move.c

Log Message:
use DBL_MIN from <float.h> instead of a hard coded small value (that
becomes zero for vax fp.)


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/games/trek/move.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/games/trek/move.c
diff -u src/games/trek/move.c:1.10 src/games/trek/move.c:1.11
--- src/games/trek/move.c:1.10	Sun May 24 22:55:03 2009
+++ src/games/trek/move.c	Sun Jul  3 06:44:01 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: move.c,v 1.10 2009/05/24 22:55:03 dholland Exp $	*/
+/*	$NetBSD: move.c,v 1.11 2011/07/03 06:44:01 mrg Exp $	*/
 
 /*
  * Copyright (c) 1980, 1993
@@ -34,12 +34,13 @@
 #if 0
 static char sccsid[] = "@(#)move.c	8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: move.c,v 1.10 2009/05/24 22:55:03 dholland Exp $");
+__RCSID("$NetBSD: move.c,v 1.11 2011/07/03 06:44:01 mrg Exp $");
 #endif
 #endif /* not lint */
 
 #include <stdio.h>
 #include <math.h>
+#include <float.h>
 #include "trek.h"
 
 /*
@@ -128,7 +129,7 @@
 		evtime += 0.005;
 		time = evtime;
 	} else
-		evtime = -1.0e50;
+		evtime = DBL_MIN;
 	dist = time * speed;
 
 	/* move within quadrant */

Reply via email to