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

Unified Diff: src/hydrogen.cc

Issue 10221006: Fix 64-bit windows size_t assert (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen.cc
diff --git a/src/hydrogen.cc b/src/hydrogen.cc
index fa4c8f1f0e5010fd464aa4f827381baee16f6ea5..ba6c6f5c9ce11169e7e6f1ff396b7f1e929157aa 100644
--- a/src/hydrogen.cc
+++ b/src/hydrogen.cc
@@ -1630,7 +1630,7 @@ GVN_UNTRACKED_FLAG_LIST(DECLARE_FLAG)
#else
OS::SNPrintF(buffer, "0x%08X", flags.ToIntegral());
#endif
- uint32_t string_len = strlen(underlying_buffer) + 1;
+ size_t string_len = strlen(underlying_buffer) + 1;
ASSERT(string_len <= sizeof(underlying_buffer));
char* result = new char[strlen(underlying_buffer) + 1];
memcpy(result, underlying_buffer, string_len);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698