[m-rev.] trivial diff: fix GCC warning
Simon Taylor
stayl at cs.mu.OZ.AU
Mon Dec 2 19:40:18 AEDT 2002
Estimated hours taken: 0.1
Branches: main
runtime/mercury_float.c:
Fix a GCC warning: "declaration of `round' shadows global declaration".
Index: mercury_float.c
===================================================================
RCS file: /home/mercury1/repository/mercury/runtime/mercury_float.c,v
retrieving revision 1.7
diff -u -u -r1.7 mercury_float.c
--- mercury_float.c 29 Nov 2002 13:50:59 -0000 1.7
+++ mercury_float.c 2 Dec 2002 05:09:39 -0000
@@ -60,7 +60,7 @@
void
MR_sprintf_float(char *buf, MR_Float f)
{
- MR_Float round = 0.0;
+ MR_Float round_trip = 0.0;
int i = MR_FLT_MIN_PRECISION;
/*
@@ -79,9 +79,9 @@
*/
break;
}
- sscanf(buf, MR_FLT_FMT, &round);
+ sscanf(buf, MR_FLT_FMT, &round_trip);
i++;
- } while (round != f);
+ } while (round_trip != f);
return;
}
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list