From 068128dadd8d8965c0f91189967aa7c390d29d0a Mon Sep 17 00:00:00 2001 From: "vegorov@chromium.org" Date: Wed, 21 Dec 2011 21:50:24 +0000 Subject: [PATCH] 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 . git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10296 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/debug.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug.cc b/src/debug.cc index 1e970e1500..24e17823d8 100644 --- a/src/debug.cc +++ b/src/debug.cc @@ -1146,7 +1146,7 @@ void Debug::SetBreakPoint(Handle shared, Handle 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);