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

Unified Diff: runtime/vm/ring_buffer.h

Issue 415513002: - Fix a lot of warnings generated by -Wshorten-64-to-32 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 5 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
Index: runtime/vm/ring_buffer.h
===================================================================
--- runtime/vm/ring_buffer.h (revision 38492)
+++ runtime/vm/ring_buffer.h (working copy)
@@ -27,7 +27,9 @@
}
// Returns the number of elements currently stored in this buffer (at most N).
- int Size() const { return Utils::Minimum(count_, static_cast<int64_t>(N)); }
+ int64_t Size() const {
+ return Utils::Minimum(count_, static_cast<int64_t>(N));
+ }
private:
static const int kMask = N - 1;

Powered by Google App Engine
This is Rietveld 408576698