osReserveHeapMemory: handle signed rlim_t
authorFraser Tweedale <frase@frase.id.au>
Mon, 8 Apr 2019 07:27:06 +0000 (17:27 +1000)
committerBen Gamari <ben@smart-cactus.org>
Fri, 19 Apr 2019 21:53:43 +0000 (17:53 -0400)
commite75a9afd2989e0460f9b49fa07c1667299d93ee9
treecf5bf1a55fbb110d49691e03277d38def1fa517d
parentd44f54aa8f0125f209637fa9e26a8968dbb31d8b
osReserveHeapMemory: handle signed rlim_t

rlim_t is a signed type on FreeBSD, and the build fails with a
sign-compare error.  Add explicit (unsigned) cast to handle this
case.

(cherry picked from commit 0fbad68df0171809bddb48e9753955cc232099eb)
rts/posix/OSMem.c