use C99 string formatting macros for platform independence

This commit is contained in:
Arvid Norberg
2009-05-15 15:52:15 +00:00
parent 6e39f24dcf
commit 53f890608d
4 changed files with 19 additions and 6 deletions

View File

@@ -381,7 +381,7 @@ namespace libtorrent
case lazy_entry::int_t:
{
char str[100];
snprintf(str, sizeof(str), "%lld", e.int_value());
snprintf(str, sizeof(str), "%"PRId64, e.int_value());
return str;
}
case lazy_entry::string_t: