Fix an nsock build error under MSVC.

This commit is contained in:
d33tah 2013-08-11 20:52:15 +00:00
parent b0abceec37
commit 6805376faf

View file

@ -169,7 +169,7 @@ static int heap_grow(gh_heap_t *heap) {
/* Do we really need to grow? */
assert(heap->count == heap->highwm);
heap->slots = safe_realloc(heap->slots,
heap->slots = (gh_hnode_t **)safe_realloc(heap->slots,
(heap->count + GH_SLOTS) * sizeof(gh_hnode_t *));
heap->highwm += GH_SLOTS;
return 0;