]> begriffs open source - libderp/commit
Deal with large allocations more consistently
authorJoe Nelson <joe@begriffs.com>
Fri, 26 Mar 2021 01:52:30 +0000 (20:52 -0500)
committerJoe Nelson <joe@begriffs.com>
Fri, 26 Mar 2021 01:52:30 +0000 (20:52 -0500)
commit06adaff6016c7f2da47b213035179108461e28e3
tree4cb2a04582b39a692ccc7ac01a7774d93c798188
parent1ea6c3d4d8304348939a4dfb0ca23ce11e2f99f8
Deal with large allocations more consistently

This is kind of academic because it's unlikely that such huge amounts
of memory could ever actually be allocated. In fact, probably impossible
given sizeof(void*). However I want the numerical logic to be correct,
and we'll leave it to realloc() to determine failure.
src/vector.c