Fix hard-coded alloc size.
Merge pull request #53 from yallop/32-bit-fixes

Fix hard-coded alloc size.