]> diplodocus.org Git - nmh/commit
mhparse.c: Cast ptrdiff_t from subtraction to long.
authorRalph Corderoy <ralph@inputplus.co.uk>
Fri, 11 Aug 2017 14:34:41 +0000 (15:34 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Fri, 11 Aug 2017 14:34:41 +0000 (15:34 +0100)
commit485fa064f8388272fe00ebfd29e4babf6dfed019
treef03fba3d657d1f5802a4b389e7ad88d80d29831d
parent0ff76f3b2823f98e75b76dc93f2b5be293171610
mhparse.c: Cast ptrdiff_t from subtraction to long.

Cygwin's 32-bit doesn't like `%ld' for the `p - q' difference between
two pointers as the value is an int, not a long.  printf(3)'s `t' length
modifier, for ptrdiff_t, can't be used as that's C99, and we're C90.
Cast the difference to a long explicitly instead.
uip/mhparse.c