Author: [email protected]
Date: Tue May 5 07:23:41 2009
New Revision: 1866
Modified:
branches/bleeding_edge/src/interpreter-irregexp.cc
Log:
Change some pointer alignment checks in irregexp to use intptr_t.
Review URL: http://codereview.chromium.org/109022
Modified: branches/bleeding_edge/src/interpreter-irregexp.cc
==============================================================================
--- branches/bleeding_edge/src/interpreter-irregexp.cc (original)
+++ branches/bleeding_edge/src/interpreter-irregexp.cc Tue May 5 07:23:41
2009
@@ -130,13 +130,13 @@
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
-~----------~----~----~----~------~----~------~--~---