Revision: 10296
Author:   [email protected]
Date:     Wed Dec 21 13:50:24 2011
Log:      Fix GCC 4.7 warnings:

* src/debug.cc (Debug::SetBreakPoint): Compare value not pointer.

Review URL: http://codereview.chromium.org/8971002
Patch from Tobias Burnus <[email protected]>.
http://code.google.com/p/v8/source/detail?r=10296

Modified:
 /branches/bleeding_edge/src/debug.cc

=======================================
--- /branches/bleeding_edge/src/debug.cc        Tue Dec  6 05:09:05 2011
+++ /branches/bleeding_edge/src/debug.cc        Wed Dec 21 13:50:24 2011
@@ -1146,7 +1146,7 @@

   Handle<DebugInfo> debug_info = GetDebugInfo(shared);
   // Source positions starts with zero.
-  ASSERT(source_position >= 0);
+  ASSERT(*source_position >= 0);

   // Find the break point and change it.
   BreakLocationIterator it(debug_info, SOURCE_BREAK_LOCATIONS);

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

Reply via email to