]> git.saurik.com Git - wxWidgets.git/commitdiff
attempt to fix gcc printf() warnings
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 2 Jun 2003 22:50:12 +0000 (22:50 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 2 Jun 2003 22:50:12 +0000 (22:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20868 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/db.cpp

index 08c40f003d89d0cee43ba2bd817c031cd8881a49..1eb408c33f5e5740a4fef731dccfe3b75492b0a5 100644 (file)
@@ -3067,7 +3067,7 @@ bool wxDb::Catalog(const wxChar *userID, const wxString &fileName)
       GetData(7,SQL_C_SLONG, (UCHAR *)&precision,   0,                       &cb);
       GetData(8,SQL_C_SLONG, (UCHAR *)&length,      0,                       &cb);
 
-        outStr.Printf(wxT("%-32s %-32s (%04d)%-15s %9d %9d\n"),
+        outStr.Printf(wxT("%-32s %-32s (%04d)%-15s %9ld %9ld\n"),
             tblName, colName, sqlDataType, typeName, precision, length);
         if (fputs(outStr.c_str(), fp) == EOF)
         {
@@ -3592,7 +3592,7 @@ bool wxDb::ModifyColumn(const wxString &tableName, const wxString &columnName,
         (Dbms() != dbmsMY_SQL || dataTypeName != "text"))
     {
         wxString s;
-        s.Printf(wxT("(%d)"), columnLength);
+        s.Printf(wxT("(%lu)"), columnLength);
         sqlStmt += s;
     }