Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(652)

Unified Diff: src/liveedit.cc

Issue 7101011: Fix building with gdbjit=on (add missing isolate pointer parameter). (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Promote size_t to int64_t, not the other way around. Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gdb-jit.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/liveedit.cc
diff --git a/src/liveedit.cc b/src/liveedit.cc
index def212f63767dd1b0d116d5cf7c351f6d0334c47..bc73445319faa614a4b233838b1c6ef4c531b090 100644
--- a/src/liveedit.cc
+++ b/src/liveedit.cc
@@ -93,8 +93,9 @@ class Differencer {
return;
}
multiply *= sizeof(int); // NOLINT
+ ASSERT(multiply >= 0);
Vyacheslav Egorov (Chromium) 2011/06/02 07:00:30 This compilation problem was reverted from svn.
size_t size = multiply;
- if (size != multiply) {
+ if (static_cast<int64_t>(size) != multiply) {
// Shouldn't be reachable.
ThrowStringException(
"Too many lines: "
« no previous file with comments | « src/gdb-jit.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698