Revision 56a1a3ab449df33268776a8b72a301d3ee67ad8d authored by Johannes Schindelin on 26 October 2015, 13:15:25 UTC, committed by Junio C Hamano on 26 October 2015, 20:24:03 UTC
When calculating hashes from pointers, it actually makes sense to cut off the most significant bits. In that case, said warning does not make a whole lot of sense. So let's just work around it by casting the pointer first to intptr_t and then casting up/down to the final integral type. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 8f77442
varint.h
#ifndef VARINT_H
#define VARINT_H
extern int encode_varint(uintmax_t, unsigned char *);
extern uintmax_t decode_varint(const unsigned char **);
#endif /* VARINT_H */
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...