author | Jonathan Nieder <jrnieder@gmail.com> | |
Mon, 28 Feb 2011 21:16:59 +0000 (15:16 -0600) | ||
committer | Jonathan Nieder <jrnieder@gmail.com> | |
Mon, 28 Feb 2011 21:25:12 +0000 (15:25 -0600) | ||
commit | 6288e3e180c0b911e6f7062f1e744a25568f7d22 | |
tree | 5d1cb4f74f1a5943433c3a3fa0fb43fad45952ea | tree | snapshot |
parent | a62bbf8f01c6b19cd1a5cf92a98f612176aa2b67 | commit | diff |
fast-import: make code "-Wpointer-arith" clean
The dereference() function to peel a tree-ish and find the underlying
tree expects arithmetic to (void *) to work on byte addresses. We
should be reading the text of objects through a char * anyway.
Noticed-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
The dereference() function to peel a tree-ish and find the underlying
tree expects arithmetic to (void *) to work on byte addresses. We
should be reading the text of objects through a char * anyway.
Noticed-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
fast-import.c | diff | blob | history |