1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-06 20:00:46 -08:00

Infinity was new in c99 so use huge_val instead.

Copied from Perforce
 Change: 191254
 ServerID: perforce.ravenbrook.com
This commit is contained in:
Gareth Rees 2016-04-19 16:38:20 +01:00
parent 99303979de
commit e8a7c408be

View file

@ -43,7 +43,7 @@
#include "fmtdytst.h"
#include "mpstd.h"
#include <math.h> /* INFINITY */
#include <math.h> /* HUGE_VAL */
#include <stdio.h> /* fflush, printf, stdout */
enum {
@ -287,7 +287,7 @@ int main(int argc, char *argv[])
/* Randomize pause time as a regression test for job004007. */
double t = rnd_double();
if (t == 0.0)
t = INFINITY;
t = HUGE_VAL; /* Would prefer to use INFINITY but it's not in C89. */
else
t = 1 / t - 1;
MPS_ARGS_ADD(args, MPS_KEY_PAUSE_TIME, t);