[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wesnoth-cvs-commits] wesnoth/src config.cpp
From: |
Jon Daniel |
Subject: |
[Wesnoth-cvs-commits] wesnoth/src config.cpp |
Date: |
Sun, 23 Jan 2005 11:30:24 -0500 |
CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: Jon Daniel <address@hidden> 05/01/23 16:30:24
Modified files:
src : config.cpp
Log message:
fixed compile time warning config.cpp:1597: int format,
size_t arg (arg 3) by changing %d to %lu
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/config.cpp.diff?tr1=1.121&tr2=1.122&r1=text&r2=text
Patches:
Index: wesnoth/src/config.cpp
diff -u wesnoth/src/config.cpp:1.121 wesnoth/src/config.cpp:1.122
--- wesnoth/src/config.cpp:1.121 Sun Jan 23 16:19:53 2005
+++ wesnoth/src/config.cpp Sun Jan 23 16:30:23 2005
@@ -1,4 +1,4 @@
-/* $Id: config.cpp,v 1.121 2005/01/23 16:19:53 j_daniel Exp $ */
+/* $Id: config.cpp,v 1.122 2005/01/23 16:30:23 j_daniel Exp $ */
/*
Copyright (C) 2003 by David White <address@hidden>
Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -1594,7 +1594,7 @@
else if(b.size() - bi < a.size() - ai) {
config& new_insert =
res.add_child("insert_child");
char buf[50];
- sprintf(buf,"%d",ai);
+ sprintf(buf,"%lu",ai);
new_insert.values["index"] = buf;
new_insert.add_child(*itor,*a[ai]);