v8: fix -Wsign-compare warning in Zone::New()
Use unsigned types for size calculations. Fixes a warning that was
drowning out everything else because zone-inl.h is included in every
source file:
../deps/v8/src/zone-inl.h: In member function 'void* v8::internal::Zone::New(int)':
../deps/v8/src/zone-inl.h:61:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (limit < position || size > limit - position) {
PR-URL: https://github.com/nodejs/node-private/pull/62
Reviewed-By:
Rod Vagg <rod@vagg.org>
parent
fd8ac56c
Please register or sign in to comment