summaryrefslogtreecommitdiff
path: root/src/bin/eolian_mono/eolian/mono/utils.hh
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-11-22 12:01:59 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-11-22 12:01:59 -0300
commit642b243df99e8510e508db215a4b0bba586a5410 (patch)
treebdaa837bab58dbb16198ba379bd389a5842d1834 /src/bin/eolian_mono/eolian/mono/utils.hh
parentb22594a10bc55c1083d15354a956bb8d84f18052 (diff)
csharp: Fix helper function
Summary: Was failing if the suffix were equal to the source string Reviewers: felipealmeida, segfaultxavi, YOhoho, brunobelo Reviewed By: brunobelo Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10708
Diffstat (limited to 'src/bin/eolian_mono/eolian/mono/utils.hh')
-rw-r--r--src/bin/eolian_mono/eolian/mono/utils.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/utils.hh b/src/bin/eolian_mono/eolian/mono/utils.hh
index 6eea0bd4d1..d942903aba 100644
--- a/src/bin/eolian_mono/eolian/mono/utils.hh
+++ b/src/bin/eolian_mono/eolian/mono/utils.hh
@@ -98,7 +98,7 @@ namespace eolian_mono { namespace utils {
98 98
99 inline bool ends_with(std::string const& source, std::string suffix) 99 inline bool ends_with(std::string const& source, std::string suffix)
100 { 100 {
101 if (source.size() > suffix.size()) 101 if (source.size() >= suffix.size())
102 return (0 == source.compare(source.size() - suffix.size(), suffix.size(), suffix)); 102 return (0 == source.compare(source.size() - suffix.size(), suffix.size(), suffix));
103 else 103 else
104 return false; 104 return false;