@@ -161,7 +161,7 @@ int mp_format_float(FPTYPE f, char *buf, size_t buf_size, char fmt, int prec, ch
161161 if (fmt == 'g' && prec == 0 ) {
162162 prec = 1 ;
163163 }
164- int e , e1 ;
164+ int e , e1 ;
165165 int dec = 0 ;
166166 char e_sign = '\0' ;
167167 int num_digits = 0 ;
@@ -209,7 +209,7 @@ int mp_format_float(FPTYPE f, char *buf, size_t buf_size, char fmt, int prec, ch
209209 e_sign_char = '+' ;
210210 }
211211 } else if (fp_isless1 (f )) {
212- e ++ ;
212+ e ++ ;
213213 f *= FPCONST (10.0 );
214214 }
215215
@@ -232,7 +232,7 @@ int mp_format_float(FPTYPE f, char *buf, size_t buf_size, char fmt, int prec, ch
232232
233233 num_digits = prec ;
234234 if (num_digits ) {
235- * s ++ = '.' ;
235+ * s ++ = '.' ;
236236 while (-- e && num_digits ) {
237237 * s ++ = '0' ;
238238 num_digits -- ;
@@ -266,7 +266,7 @@ int mp_format_float(FPTYPE f, char *buf, size_t buf_size, char fmt, int prec, ch
266266 f *= FPCONST (0.1 );
267267 }
268268
269- // If the user specified fixed format (fmt == 'f') and e makes the
269+ // If the user specified fixed format (fmt == 'f') and e makes the
270270 // number too big to fit into the available buffer, then we'll
271271 // switch to the 'e' format.
272272
@@ -327,7 +327,7 @@ int mp_format_float(FPTYPE f, char *buf, size_t buf_size, char fmt, int prec, ch
327327 if (prec == 0 ) {
328328 prec = 1 ;
329329 }
330- num_digits = prec ;
330+ num_digits = prec ;
331331 }
332332
333333 // Print the digits of the mantissa
@@ -365,7 +365,7 @@ int mp_format_float(FPTYPE f, char *buf, size_t buf_size, char fmt, int prec, ch
365365 if (rs == buf ) {
366366 break ;
367367 }
368- rs -- ;
368+ rs -- ;
369369 }
370370 if (* rs == '0' ) {
371371 // We need to insert a 1
@@ -380,13 +380,13 @@ int mp_format_float(FPTYPE f, char *buf, size_t buf_size, char fmt, int prec, ch
380380 e_sign = '+' ;
381381 }
382382 } else {
383- e ++ ;
383+ e ++ ;
384384 }
385385 } else {
386386 // Need at extra digit at the end to make room for the leading '1'
387387 s ++ ;
388388 }
389- char * ss = s ;
389+ char * ss = s ;
390390 while (ss > rs ) {
391391 * ss = ss [-1 ];
392392 ss -- ;
0 commit comments