commit e082ed67081c3f126a8c83d3ea8b5b49bb576a90 from: Christian Weisgerber date: Mon Oct 24 20:16:37 2022 UTC 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(). commit - 2c75f174eaa5edecfcf15dd4e81c87a70c53b21e commit + e082ed67081c3f126a8c83d3ea8b5b49bb576a90 blob - 5779ba728d64bd7ba33214a09f3f0a31c5caf882 blob + 1c0dca5988508ef04d6a7e98660101631596d8bb --- lib/pack.c +++ lib/pack.c @@ -864,7 +864,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)