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

Unified Diff: remoting/host/capturer.cc

Issue 2847010: Coverity: Fix undefined assignment evaluation order in remoting::Capturer::FinishCapture. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: Created 10 years, 6 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: remoting/host/capturer.cc
diff --git a/remoting/host/capturer.cc b/remoting/host/capturer.cc
index 789723ba6619c9f3b1f07cd83b63801fe582b9e4..331f9c753bf99dd607c4a2c974c215b19ecb8bdb 100644
--- a/remoting/host/capturer.cc
+++ b/remoting/host/capturer.cc
@@ -43,7 +43,7 @@ void Capturer::FinishCapture(Task* done_task) {
delete done_task;
// Select the next buffer to be the current buffer.
- current_buffer_ = ++current_buffer_ % kNumBuffers;
+ current_buffer_ = (current_buffer_ + 1) % kNumBuffers;
}
} // namespace remoting
« 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