Reviewers: Michael Starzinger,

Message:
Please take a look.

Description:
Fixing compiler warning on gcc 4.6.1.

BUG=v8:1831


Please review this at http://codereview.chromium.org/8597006/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/objects-inl.h


Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index 99cb3d220e574d11d4f13e86303b05e4a1903404..97b186f06187e09b30651b1a99479dcb75766e00 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -2298,7 +2298,7 @@ void ConsString::set_second(String* value, WriteBarrierMode mode) {


 void ExternalString::clear_data_cache() {
-  WRITE_INTPTR_FIELD(this, kResourceDataOffset, NULL);
+  *reinterpret_cast<void**>(FIELD_ADDR(this, kResourceDataOffset)) = NULL;
 }




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

Reply via email to