From: lrn@chromium.org Date: Fri, 14 Aug 2009 12:20:33 +0000 (+0000) Subject: Fix unsafe cast in RegExpStack X-Git-Tag: upstream/4.7.83~23458 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=925433d241f360cb4c791bbfca335c42f1e3059f;p=platform%2Fupstream%2Fv8.git Fix unsafe cast in RegExpStack Review URL: http://codereview.chromium.org/164552 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2690 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/regexp-stack.h b/src/regexp-stack.h index eb6df6a..99cf33c 100644 --- a/src/regexp-stack.h +++ b/src/regexp-stack.h @@ -74,7 +74,7 @@ class RegExpStack { private: // Artificial limit used when no memory has been allocated. - static const uintptr_t kMemoryTop = -1; + static const uintptr_t kMemoryTop = static_cast(-1); // Minimal size of allocated stack area. static const size_t kMinimumStackSize = 1 * KB;