OSDN Git Service

Committed as obvious:
authordannysmith <dannysmith>
Sun, 23 Sep 2007 22:23:18 +0000 (22:23 +0000)
committerdannysmith <dannysmith>
Sun, 23 Sep 2007 22:23:18 +0000 (22:23 +0000)
2007-09-24  David C. Daeschler <daveregs@rsaisp.com>

* mingwex/gdtoa/mingw_snprintf.c (x_sprintf): Correct LEN_L typo in 'l'
case.  Add missing break in 's'/LEN_S case.

winsup/mingw/ChangeLog
winsup/mingw/mingwex/gdtoa/mingw_snprintf.c

index 407431a..3bddce9 100644 (file)
@@ -1,3 +1,8 @@
+2007-09-24  David C. Daeschler <daveregs@rsaisp.com>
+
+       * mingwex/gdtoa/mingw_snprintf.c (x_sprintf): Correct LEN_L typo in 'l'
+       case.  Add missing break in 's'/LEN_S case.
+
 2007-08-25 Keith Marshall <keithmarshall@users.sourceforge.net>
 
        Make snprintf() and vsnprintf() conform to C99.
index f063d2c..5e4e119 100755 (executable)
@@ -465,7 +465,7 @@ x_sprintf
                                    len = LEN_LL;
                                  }
                                else
-                                 len = LEN_LL;
+                                 len = LEN_L;
                                goto fmtloop;
                        case 'L':
                                flag_ld++;
@@ -617,6 +617,7 @@ x_sprintf
                                        break;
                                  case LEN_S:
                                        *(short*)ip = c;
+                                       break;
                                  case LEN_LL:
                                        *(long long*) ip = c;
                                        break;