diff options
author | Torbjorn Granlund <tege@gmplib.org> | 2012-12-23 23:06:54 +0100 |
---|---|---|
committer | Torbjorn Granlund <tege@gmplib.org> | 2012-12-23 23:06:54 +0100 |
commit | 8c14d5baed4d6d78bfb6bbfe2ac38b2a9f144bc9 (patch) | |
tree | e8bcbc6907326ba7b59d8772512c8a2a1a73481a /tests | |
parent | b93e2498043f2f69e90a11c0ede4f529d7930713 (diff) | |
download | gmp-8c14d5baed4d6d78bfb6bbfe2ac38b2a9f144bc9.tar.gz |
(check_onebit): Decrease vax limit to avoid overflow in last, unused 'want' value.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mpz/t-get_d.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mpz/t-get_d.c b/tests/mpz/t-get_d.c index 89b54dcc4..c9f2a90d9 100644 --- a/tests/mpz/t-get_d.c +++ b/tests/mpz/t-get_d.c @@ -1,6 +1,6 @@ /* Test mpz_get_d. -Copyright 2002 Free Software Foundation, Inc. +Copyright 2002, 2012 Free Software Foundation, Inc. This file is part of the GNU MP Library test suite. @@ -32,7 +32,7 @@ check_onebit (void) double got, want; /* FIXME: It'd be better to base this on the float format. */ #if defined (__vax) || defined (__vax__) - int limit = 127; /* vax fp numbers have limited range */ + int limit = 127 - 1; /* vax fp numbers have limited range */ #else int limit = 512; #endif |