PR23966, mingw failure due to 32-bit long
authorAlan Modra <amodra@gmail.com>
Thu, 27 Dec 2018 23:04:28 +0000 (09:34 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 28 Dec 2018 04:32:04 +0000 (15:02 +1030)
commitcb87d9f1a49986b2eb92ac381444f4cc7c9d8a4f
tree0e671a28f4d850fa598ad2920be0efe1aff0eb8b
parentd1a3c973fa1c0d7eead585e82e02db11daeb36cf
PR23966, mingw failure due to 32-bit long

PR 23966
* libbfd.c (SSIZE_MAX): Define.
(bfd_malloc, bfd_realloc): Don't cast size to long to check for
"negative" values, compare against SSIZE_MAX instead.
bfd/ChangeLog
bfd/libbfd.c