From 7fd4e7e1c21855d5b173383bdce2b0d1bb044d33 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 2 Jun 2003 22:50:12 +0000 Subject: [PATCH] attempt to fix gcc printf() warnings git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20868 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/db.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/db.cpp b/src/common/db.cpp index 08c40f003d..1eb408c33f 100644 --- a/src/common/db.cpp +++ b/src/common/db.cpp @@ -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; } -- 2.45.2