]> git.ipfire.org Git - thirdparty/git.git/commit
mem-pool: drop trailing semicolon from macro definition
authorRené Scharfe <l.s.r@web.de>
Sat, 13 Mar 2021 16:17:37 +0000 (17:17 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Mar 2021 17:20:16 +0000 (10:20 -0700)
commit116affac3f9e3d92d633e6fd766e541c1c5b0765
treeebc66e5eb80412bca25c7830d1254320486ea6b2
parent3d8cbbf2c35141377a86a57a862e74c270e59a2a
mem-pool: drop trailing semicolon from macro definition

Allow BLOCK_GROWTH_SIZE to be used like an integer literal by removing
the trailing semicolon from its definition.  Also wrap the expression in
parentheses, to allow it to be used with operators without leading to
unexpected results.  It doesn't matter for the current use site, but
make it follow standard macro rules anyway to avoid future surprises.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
mem-pool.c