Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarshan Sen <raisinten@gmail.com>2021-02-01 17:00:04 +0300
committerDarshan Sen <raisinten@gmail.com>2021-02-10 16:26:08 +0300
commite045ddad54e534d7cf1db4338431c2ce3f9607d2 (patch)
treee9b21762bdab81b3f6d55048363ce7ef788bd65b /src/string_search.h
parent9d2125e3bfeaa36692ded547a50c9579ddc39e20 (diff)
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 <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'src/string_search.h')
-rw-r--r--src/string_search.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string_search.h b/src/string_search.h
index 3648bc015ab..cd9ef320a81 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 {