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

Unified Diff: runtime/vm/zone.h

Issue 849873002: Fix build by silencing zero-length memset warning. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 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: runtime/vm/zone.h
===================================================================
--- runtime/vm/zone.h (revision 42819)
+++ runtime/vm/zone.h (working copy)
@@ -118,7 +118,9 @@
template <class ElementType>
void Free(ElementType* old_array, intptr_t len) {
#ifdef DEBUG
- memset(old_array, kZapUninitializedByte, len * sizeof(ElementType));
+ if (len > 0) {
+ memset(old_array, kZapUninitializedByte, len * sizeof(ElementType));
+ }
#endif
}
« 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