Refactors deq
authorPeizhao Ou <peizhaoo@uci.edu>
Tue, 23 Jan 2018 01:00:49 +0000 (17:00 -0800)
committerPeizhao Ou <peizhaoo@uci.edu>
Tue, 23 Jan 2018 01:00:49 +0000 (17:00 -0800)
test/stress/sequential/sequential-misc/deque_driver.cpp

index cd47986..066296b 100644 (file)
@@ -78,9 +78,10 @@ Deque *ChaseLevDequeTest::deque;
 
 TEST_F(ChaseLevDequeTest, ChaseLevDeque) {
   deque = new Deque();
+  int res;
   for (size_t i = 0; i < s_nDequePassCount; ++i) {
     deque->push(i);
-    int res = deque->take();
+    res = deque->take();
     deque->push(i);
     res = deque->steal();
   }