Skip to content

Commit e99c12c

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/gdscript/gdscript_tokenizer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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)