=================================================================== RCS file: /home/cvs/OpenXM_contrib/gmp/mpq/Attic/set_ui.c,v retrieving revision 1.1.1.2 retrieving revision 1.1.1.3 diff -u -p -r1.1.1.2 -r1.1.1.3 --- OpenXM_contrib/gmp/mpq/Attic/set_ui.c 2000/09/09 14:13:06 1.1.1.2 +++ OpenXM_contrib/gmp/mpq/Attic/set_ui.c 2003/08/25 16:06:34 1.1.1.3 @@ -1,7 +1,7 @@ /* mpq_set_ui(dest,ulong_num,ulong_den) -- Set DEST to the retional number ULONG_NUM/ULONG_DEN. -Copyright (C) 1991, 1994, 1995 Free Software Foundation, Inc. +Copyright 1991, 1994, 1995, 2001 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -24,14 +24,7 @@ MA 02111-1307, USA. */ #include "gmp-impl.h" void -#if __STDC__ mpq_set_ui (MP_RAT *dest, unsigned long int num, unsigned long int den) -#else -mpq_set_ui (dest, num, den) - MP_RAT *dest; - unsigned long int num; - unsigned long int den; -#endif { if (num == 0) { @@ -46,5 +39,5 @@ mpq_set_ui (dest, num, den) } dest->_mp_den._mp_d[0] = den; - dest->_mp_den._mp_size = 1; + dest->_mp_den._mp_size = (den != 0); }