From 053938eb0652eb45b2573588ceb3959bc0c9541c Mon Sep 17 00:00:00 2001 From: Darshan Sen Date: Mon, 1 Feb 2021 19:30:04 +0530 Subject: [PATCH] src: fix return type of method in string_search.h `Vector::forward()` is supposed to return a `bool`. --- src/string_search.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/string_search.h b/src/string_search.h index 3648bc015ab229..cd9ef320a81112 100644 --- a/src/string_search.h +++ b/src/string_search.h @@ -32,7 +32,7 @@ class Vector { // Returns true if the Vector is front-to-back, false if back-to-front. // In the latter case, v[0] corresponds to the *end* of the memory range. - size_t forward() const { return is_forward_; } + bool forward() const { return is_forward_; } // Access individual vector elements - checks bounds in debug mode. T& operator[](size_t index) const {