Use %zd instead of %lu, the latter caused warnings on 32-bit platforms...

%zd should work for any definition of size_t.
This commit is contained in:
Ignacio R. Morelle 2009-08-09 00:43:32 +00:00
parent 08eea8ead7
commit 270319e94b

View File

@ -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_);