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

Unified Diff: src/utils.h

Issue 2875273002: Remove outdated comment. (Closed)
Patch Set: Created 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils.h
diff --git a/src/utils.h b/src/utils.h
index ab25771be3d26db8be918028508836dc5d27b724..6c8dadbd715f363672bc7a8cf260e3a05b4a327b 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -1042,11 +1042,8 @@ int WriteAsCFile(const char* filename, const char* varname,
template <typename T>
inline void CopyWords(T* dst, const T* src, size_t num_words) {
STATIC_ASSERT(sizeof(T) == kPointerSize);
- // TODO(mvstanton): disabled because mac builds are bogus failing on this
- // assert. They are doing a signed comparison. Investigate in
- // the morning.
- // DCHECK(Min(dst, const_cast<T*>(src)) + num_words <=
- // Max(dst, const_cast<T*>(src)));
+ DCHECK(Min(dst, const_cast<T*>(src)) + num_words <=
+ Max(dst, const_cast<T*>(src)));
DCHECK(num_words > 0);
// Use block copying MemCopy if the segment we're copying is
« 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