mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-02 13:34:28 +00:00
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:
parent
08eea8ead7
commit
270319e94b
@ -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_);
|
||||
|
Loading…
x
Reference in New Issue
Block a user