Commit Diff
- Commit:
04fb0dd80d172753f311cfa4fdd0e15b107240bd
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
- Message:
- fix off_t type mismatch off_t is a signed type and depending on the platform, it can be "long" or "long long", so cast to long long for printf().
- Actions:
- Patch | Tree
--- lib/pack.c +++ lib/pack.c @@ -861,7 +861,7 @@ got_pack_parse_object_type_and_size(uint8_t *type, uin /* We do not support size values which don't fit in 64 bit. */ if (i > 9) return got_error_fmt(GOT_ERR_OBJ_TOO_LARGE, - "packfile offset %llu", offset); + "packfile offset %lld", (long long)offset); if (pack->map) { if (mapoff + sizeof(sizeN) >= pack->filesize)