Reviewers: Lasse Reichstein, Description: Change some pointer alignment checks in irregexp to use intptr_t.
Please review this at http://codereview.chromium.org/109022 Affected files: M src/interpreter-irregexp.cc Index: src/interpreter-irregexp.cc diff --git a/src/interpreter-irregexp.cc b/src/interpreter-irregexp.cc index 70680a861e47953cb568c41c44d87d00f9e02357..77bcc907431ab1d36f98e535211392ee97af303e 100644 --- a/src/interpreter-irregexp.cc +++ b/src/interpreter-irregexp.cc @@ -130,13 +130,13 @@ static void TraceInterpreter(const byte* code_base, static int32_t Load32Aligned(const byte* pc) { - ASSERT((reinterpret_cast<int>(pc) & 3) == 0); + ASSERT((reinterpret_cast<intptr_t>(pc) & 3) == 0); return *reinterpret_cast<const int32_t *>(pc); } static int32_t Load16Aligned(const byte* pc) { - ASSERT((reinterpret_cast<int>(pc) & 1) == 0); + ASSERT((reinterpret_cast<intptr_t>(pc) & 1) == 0); return *reinterpret_cast<const uint16_t *>(pc); } --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
