fixed build warnings

This commit is contained in:
Arvid Norberg 2010-12-12 19:40:11 +00:00
parent cc22aca981
commit f64679c297
1 changed files with 2 additions and 2 deletions

View File

@ -451,7 +451,7 @@ void natpmp::on_reply(error_code const& e
if (bytes_transferred < 12)
{
char msg[200];
snprintf(msg, sizeof(msg), "received packet of invalid size: %d", bytes_transferred);
snprintf(msg, sizeof(msg), "received packet of invalid size: %d", int(bytes_transferred));
log(msg, l);
return;
}
@ -477,7 +477,7 @@ void natpmp::on_reply(error_code const& e
if (bytes_transferred < 16)
{
char msg[200];
snprintf(msg, sizeof(msg), "received packet of invalid size: %d", bytes_transferred);
snprintf(msg, sizeof(msg), "received packet of invalid size: %d", int(bytes_transferred));
log(msg, l);
return;
}