]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wxchar.cpp
Removed rundant files, updated readme.txt.
[wxWidgets.git] / src / common / wxchar.cpp
index 2d2668191a08f98ad953f41232bc5301be7a0dbd..63ae0e26e7ab12bc8078e51eace2f52c0000c978 100644 (file)
@@ -280,7 +280,9 @@ int WXDLLEXPORT wxVsnprintf_(wxChar *buf, size_t lenMax,
                             ::sprintf(szScratch, s_szFlags, val);
                         }
                         else if (ilen == -1) {
-                            short int val = va_arg(argptr, short int);
+                            // NB: 'short int' value passed through '...'
+                            //      is promoted to 'int'
+                            short int val = (short int) va_arg(argptr, int);
                             ::sprintf(szScratch, s_szFlags, val);
                         }
                         else if (ilen == 1) {