CAMLparam2(bitmap, nsize);
size_t bits = Long_val(nsize);
size_t bytes = (bits / (8 * sizeof(unsigned int)) + 1 ) * sizeof(unsigned int);
CAMLparam2(bitmap, nsize);
size_t bits = Long_val(nsize);
size_t bytes = (bits / (8 * sizeof(unsigned int)) + 1 ) * sizeof(unsigned int);
unsigned int * buffer = (unsigned int*) realloc((void *) bitmap, bytes);
if (buffer == NULL)
CAMLRAISEMSG("BP: cannot reallocate memory");
unsigned int * buffer = (unsigned int*) realloc((void *) bitmap, bytes);
if (buffer == NULL)
CAMLRAISEMSG("BP: cannot reallocate memory");