Fix 64-bitness warnings in the example.

Fixes issues 9 and 10.
This commit is contained in:
Petteri Aimonen
2012-05-19 21:15:52 +03:00
parent d1ca88d20e
commit b943290886
2 changed files with 5 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ bool printfile_callback(pb_istream_t *stream, const pb_field_t *field, void *arg
if (!pb_decode(stream, FileInfo_fields, &fileinfo))
return false;
printf("%-10lld %s\n", fileinfo.inode, fileinfo.name);
printf("%-10lld %s\n", (long long)fileinfo.inode, fileinfo.name);
return true;
}