libs/unicode/string.c double args

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Cheers,
Jon

License: X11

Changelog:

  Jon Griffiths <jon_p_griffiths@xxxxxxxxx>
  +libs/unicode/string.c
    Remove a redundant test
    Handle 'a','A','e','E','F','g','G' flavours of double arguments










__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
--- wine/libs/unicode/string.c	2003-08-13 18:29:18.000000000 +0000
+++ wine-develop/libs/unicode/string.c	2003-10-27 16:10:49.000000000 +0000
@@ -320,7 +320,6 @@
                    *iter == '+' ||
                    *iter == '-' ||
                    *iter == ' ' ||
-                   *iter == '0' ||
                    *iter == '*' ||
                    *iter == '#')
             {
@@ -393,10 +392,18 @@
                 {
                     *fmta++ = *iter;
                     *fmta = '\0';
-                    if (*iter == 'f')
+                    if (*iter == 'a' || *iter == 'A' ||
+                        *iter == 'e' || *iter == 'E' ||
+                        *iter == 'f' || *iter == 'F' || 
+                        *iter == 'g' || *iter == 'G')
                         sprintf(bufaiter, fmtbufa, va_arg(valist, double));
                     else
+                    {
+                        /* FIXME: On 32 bit systems this doesn't handle int 64's.
+                         *        on 64 bit systems this doesn't work for 32 bit types
+			 */
                         sprintf(bufaiter, fmtbufa, va_arg(valist, void *));
+                    }
                 }
                 while (*bufaiter)
                 {

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux