summaryrefslogtreecommitdiff
path: root/mpf/ui_div.c
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2000-04-11 21:08:55 +0200
committerKevin Ryde <user42@zip.com.au>2000-04-11 21:08:55 +0200
commitbbfb3848d247611aa00e1d6ad1bdc3fd33bbcf75 (patch)
tree41ac4b342c98f228f414b9f56704d6bafee78a7e /mpf/ui_div.c
parent9dd460c0a62c8e7d5ce601553c5dda2194c8293d (diff)
downloadgmp-bbfb3848d247611aa00e1d6ad1bdc3fd33bbcf75.tar.gz
Use DIVIDE_BY_ZERO.
Diffstat (limited to 'mpf/ui_div.c')
-rw-r--r--mpf/ui_div.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mpf/ui_div.c b/mpf/ui_div.c
index a49a95204..76f995eda 100644
--- a/mpf/ui_div.c
+++ b/mpf/ui_div.c
@@ -1,6 +1,6 @@
/* mpf_ui_div -- Divide an unsigned integer with a float.
-Copyright (C) 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
+Copyright (C) 1993, 1994, 1995, 1996, 2000 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -50,7 +50,8 @@ mpf_ui_div (r, u, v)
prec = r->_mp_prec;
if (vsize == 0)
- vsize = 1 / vsize; /* divide by zero as directed */
+ DIVIDE_BY_ZERO;
+
if (u == 0)
{
r->_mp_size = 0;