From 8e95b7ffb9c4102a0a384e0dd8d9ddd2d03285a4 Mon Sep 17 00:00:00 2001 From: Carl-Henrik Skarstedt Date: Wed, 2 Dec 2020 19:17:07 +0100 Subject: [PATCH] Fixed missing return in Find --- .gitignore | 1 + struse.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 654c9dd..145d8a0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +./x65.exe *.suo *.ipch *.aps diff --git a/struse.h b/struse.h index 991cff7..60bccb3 100644 --- a/struse.h +++ b/struse.h @@ -770,7 +770,7 @@ public: int find_after_last(char a, char b) const { return get_strref().find_after_last(a, b); } int find_after_last(char a1, char a2, char b) const { return get_strref().find_after_last(a1, a2, b); } int find(const strref str) const { return get_strref().find(str); } - int find(const strref str, strl_t pos) const { get_strref().find(str, pos); } + int find(const strref str, strl_t pos) const { return get_strref().find(str, pos); } int find(const char *str, strl_t pos = 0) const { return get_strref().find(str, pos); } int find_case(const strref str) const { return get_strref().find_case(str); } int find_case(const char *str) const { return get_strref().find_case(str); }