From e045ddad54e534d7cf1db4338431c2ce3f9607d2 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`. PR-URL: https://github.com/nodejs/node/pull/37167 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Luigi Pinca Reviewed-By: Rich Trott --- 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 {