Fix GC_requested_heapsize increment in GC_init
authorIvan Maidanski <ivmai@mail.ru>
Fri, 30 Sep 2016 12:46:42 +0000 (15:46 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 30 Sep 2016 12:46:42 +0000 (15:46 +0300)
commitd1cdea89a713b5c3da886911826a84ef3feb432f
tree411d8d17f447343fdd7a676dfc5414b491ccb7c2
parent80e4318f1d3724248fb16ea2d5521bf4f5304a49
Fix GC_requested_heapsize increment in GC_init

Also eliminate static analyzer warning about potential overflow in
initial_heap_sz * HBLKSIZE.

* misc.c (GC_init): Change initial_heap_sz to keep size value in bytes
instead of HBLKSIZE units (thus, GC_requested_heapsize is incremented
by a number of bytes not HBLKSIZE units).
misc.c