]> git.ipfire.org Git - thirdparty/git.git/commit - notes.c
notes: make GET_NIBBLE macro more robust
authorMichael Haggerty <mhagger@alum.mit.edu>
Sat, 26 Aug 2017 08:28:01 +0000 (10:28 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 26 Aug 2017 16:21:01 +0000 (09:21 -0700)
commit65eb8e0ca79d4a58768f9409b24c48a95d39bc55
tree836945d08ff835e5128fa677a796120d53323951
parentedc74bc7f0c6884027e851ef09b2e0c9380dcd45
notes: make GET_NIBBLE macro more robust

Put parentheses around sha1. Otherwise it could fail for something
like

    GET_NIBBLE(n, (unsigned char *)data);

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
notes.c