Permalink
Browse files

fix closure_destroy() with cast for AdjustAmountOfExternalAllocatedMe…

…mory()
  • Loading branch information...
1 parent 1cae3db commit f5985af0f1a0f2dcc0a8d0b7b8d611b09d6b7ca0 @tj tj committed Aug 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/closure.h
View
@@ -44,7 +44,7 @@ void
closure_destroy(closure_t *closure) {
if (closure->len) {
free(closure->data);
- V8::AdjustAmountOfExternalAllocatedMemory(-closure->max_len);
+ V8::AdjustAmountOfExternalAllocatedMemory(- (intptr_t) closure->max_len);
}
}

0 comments on commit f5985af

Please sign in to comment.