Ramsay Jones <ramsay@xxxxxxxxxxxxxxxxxxx> writes: >>> printf("%s%06"PRIo32" %s %d\t", tag, ntohl(ce->ce_mode), ...) >>> >>> that's the correct and allegedly portable way I guess. I do not think this is really worth it. printf("%s%06o %s %d\t", tag, (unsigned) ntohl(ce->ce_mode), ... is perfectly readable for even old timers about git, as long as they know traditional C and what ntohl() is. And ce->ce_mode even fits in 16-bit, so while we are _not_ supporting platforms whose unsigned int is 16-bit, the above cast is not losing any useful precision either. > (the symbols being: uint32_t, uint64_t, uint16_t, uintmax_t) I think we would want these exact-sized integer types, so if they are missing the platform ports may want to supply their own substitute. - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html