Skip to content

Commit ba95494

Browse files
committed
Fix CodeArea::*_or_together methods
1 parent b81fcd6 commit ba95494

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/gdscript/gdscript_tokenizer.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ class GDScriptTokenizer {
183183
}
184184

185185
constexpr bool starts_after_or_together(const Pair<int, int> &p_other) const {
186-
return start > p_other;
186+
return start >= p_other;
187187
}
188188
constexpr bool starts_after_or_together(const CodeArea &p_other) const {
189189
return starts_after_or_together(p_other.start);
@@ -240,7 +240,7 @@ class GDScriptTokenizer {
240240
}
241241

242242
constexpr bool ends_before_or_together(const Pair<int, int> &p_other) const {
243-
return end < p_other;
243+
return end <= p_other;
244244
}
245245
constexpr bool ends_before_or_together(const CodeArea &p_other) const {
246246
return ends_before_or_together(p_other.end);
@@ -278,7 +278,7 @@ class GDScriptTokenizer {
278278
}
279279

280280
constexpr bool ends_after_or_together(const Pair<int, int> &p_other) const {
281-
return end > p_other;
281+
return end >= p_other;
282282
}
283283
constexpr bool ends_after_or_together(const CodeArea &p_other) const {
284284
return ends_after_or_together(p_other.end);

0 commit comments

Comments
 (0)