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

Unified Diff: src/circular-queue.cc

Issue 19778003: Fix Windows compilation after r15750 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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
« no previous file with comments | « src/circular-queue.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/circular-queue.cc
diff --git a/src/circular-queue.cc b/src/circular-queue.cc
index 475b23487a58d2f1bbe3a67f6088aaf986002ce9..3e32e4d2883e15c3f3af3ba598fa7c469b0283b5 100644
--- a/src/circular-queue.cc
+++ b/src/circular-queue.cc
@@ -35,7 +35,7 @@ namespace internal {
SamplingCircularQueue::SamplingCircularQueue(size_t record_size_in_bytes,
size_t desired_chunk_size_in_bytes,
- int buffer_size_in_chunks)
+ unsigned buffer_size_in_chunks)
: record_size_(record_size_in_bytes / sizeof(Cell)),
chunk_size_in_bytes_(desired_chunk_size_in_bytes / record_size_in_bytes *
record_size_in_bytes + sizeof(Cell)),
@@ -46,7 +46,7 @@ SamplingCircularQueue::SamplingCircularQueue(size_t record_size_in_bytes,
ASSERT(chunk_size_ * sizeof(Cell) == chunk_size_in_bytes_);
ASSERT(buffer_size_in_chunks > 2);
// Mark all chunks as clear.
- for (int i = 0; i < buffer_size_; i += chunk_size_) {
+ for (size_t i = 0; i < buffer_size_; i += chunk_size_) {
buffer_[i] = kClear;
}
« no previous file with comments | « src/circular-queue.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698