From e27c06c2279a08812a0accfb55b095147f009e86 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Mon, 18 Feb 2019 10:55:51 +0100 Subject: [PATCH] Fix regression build with SDS & rapidstring --- bench/bench-string.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bench/bench-string.cpp b/bench/bench-string.cpp index 2d7f8b7f..2ec92958 100644 --- a/bench/bench-string.cpp +++ b/bench/bench-string.cpp @@ -641,7 +641,7 @@ int testSDS_concat (int count) { for (i=0; i < 250; i++) { accum = sdscat(accum, a); accum = sdscat(accum, "!!"); - BARRIER(b); + BARRIER(accum); c += sdslen(accum) ^i; } } @@ -731,7 +731,7 @@ int testRAPIDSTRING_concat (int count) { for (i=0; i < 250; i++) { rs_cat_rs(&accum, &a); rs_cat(&accum, "!!"); - BARRIER(&b); + BARRIER(&accum); c += rs_len(&accum) ^i; } }