From 270319e94ba9428cd01c4bb9217586e952679b8c Mon Sep 17 00:00:00 2001 From: "Ignacio R. Morelle" Date: Sun, 9 Aug 2009 00:43:32 +0000 Subject: [PATCH] Use %zd instead of %lu, the latter caused warnings on 32-bit platforms... %zd should work for any definition of size_t. --- src/replay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/replay.cpp b/src/replay.cpp index d68286579b9..745391b984e 100644 --- a/src/replay.cpp +++ b/src/replay.cpp @@ -267,7 +267,7 @@ void replay::add_attack(const map_location& a, const map_location& b, cfg["attacker_lvl"] = buf; snprintf(buf,sizeof(buf),"%d",defender_lvl); cfg["defender_lvl"] = buf; - snprintf(buf,sizeof(buf),"%lu",turn); + snprintf(buf,sizeof(buf),"%zd",turn); cfg["turn"] = buf; cfg["tod"] = t.id; add_unit_checksum(a,current_);