Revision: 2690
Author: [email protected]
Date: Fri Aug 14 05:20:33 2009
Log: Fix unsafe cast in RegExpStack

Review URL: http://codereview.chromium.org/164552

http://code.google.com/p/v8/source/detail?r=2690

Modified:
  /branches/bleeding_edge/src/regexp-stack.h

=======================================
--- /branches/bleeding_edge/src/regexp-stack.h  Fri Aug 14 04:24:32 2009
+++ /branches/bleeding_edge/src/regexp-stack.h  Fri Aug 14 05:20:33 2009
@@ -74,7 +74,7 @@

   private:
    // Artificial limit used when no memory has been allocated.
-  static const uintptr_t kMemoryTop = -1;
+  static const uintptr_t kMemoryTop = static_cast<uintptr_t>(-1);

    // Minimal size of allocated stack area.
    static const size_t kMinimumStackSize = 1 * KB;

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to