obstack: fix compiler warning
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 19 Jun 2019 21:05:59 +0000 (14:05 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 Jun 2019 21:03:05 +0000 (14:03 -0700)
commit96a0679441224e1a1d6f8afd6e25671ce577b92f
tree886f2bde83df784f21446ce8c19d37b4ab8eeb40
parente9b9cc56bbc0a223798c731798da1bee9f599cab
obstack: fix compiler warning

MS Visual C suggests that the construct

condition ? (int) i : (ptrdiff_t) d

is incorrect. Let's fix this by casting to ptrdiff_t also for the
positive arm of the conditional.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/obstack.h