[Python-checkins] r71132 - python/branches/py3k-short-float-repr/Python/pystrtod.c

mark.dickinson python-checkins at python.org
Sat Apr 4 11:00:59 CEST 2009


Author: mark.dickinson
Date: Sat Apr  4 11:00:59 2009
New Revision: 71132

Log:
Remove surplus braces


Modified:
   python/branches/py3k-short-float-repr/Python/pystrtod.c

Modified: python/branches/py3k-short-float-repr/Python/pystrtod.c
==============================================================================
--- python/branches/py3k-short-float-repr/Python/pystrtod.c	(original)
+++ python/branches/py3k-short-float-repr/Python/pystrtod.c	Sat Apr  4 11:00:59 2009
@@ -594,7 +594,7 @@
 	switch (format_code) {
 	case 'e': use_exp = 1; break;
 	case 'f': use_exp = 0; break;
-	case 'g': {
+	case 'g':
 		if ((mode != 0) && (decpt > precision || decpt <= -4))
 			use_exp = 1;
 		else {
@@ -602,7 +602,6 @@
 			n_wanted_digits_after_decimal = precision - decpt;
 		}
 	}
-	}
 
 	/* Always add a negative sign, and a plus sign if always_add_sign. */
 	if (sign == 1)


More information about the Python-checkins mailing list