From 5e0a0bfd9b6db8e65bb6052d7b65547e803de42b Mon Sep 17 00:00:00 2001
From: inmarket <andrewh@inmarket.com.au>
Date: Sat, 21 Feb 2015 09:23:00 +1000
Subject: Compile error fix for GFILE_ALLOW_FLOAT

---
 src/gfile/gfile_printg.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/gfile/gfile_printg.c b/src/gfile/gfile_printg.c
index d11bb24d..5715a45a 100644
--- a/src/gfile/gfile_printg.c
+++ b/src/gfile/gfile_printg.c
@@ -59,7 +59,7 @@ int vfnprintg(GFILE *f, int maxlen, const char *fmt, va_list arg) {
 	bool_t	is_long, left_align;
 	long	l;
 	#if GFILE_ALLOW_FLOATS
-		float	f;
+		float	fpv;
 		char	tmpbuf[2*MAX_FILLER + 1];
 	#else
 		char	tmpbuf[MAX_FILLER + 1];
@@ -156,15 +156,15 @@ int vfnprintg(GFILE *f, int maxlen, const char *fmt, va_list arg) {
 			break;
 		#if GFILE_ALLOW_FLOATS
 			case 'f':
-				f = (float) va_arg(arg, double);
-				if (f < 0) {
+				fpv = (float) va_arg(arg, double);
+				if (fpv < 0) {
 					*p++ = '-';
-					f = -f;
+					fpv = -fpv;
 				}
-				l = f;
+				l = fpv;
 				p = ltoa_wd(p, l, 10, 0);
 				*p++ = '.';
-				l = (f - l) * FLOAT_PRECISION;
+				l = (fpv - l) * FLOAT_PRECISION;
 				p = ltoa_wd(p, l, 10, FLOAT_PRECISION / 10);
 				break;
 		#endif
-- 
cgit v1.2.3