Skip to content

Commit 3dbb6eb

Browse files
committed
upd
1 parent 0fa7a9e commit 3dbb6eb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=StringUtils
2-
version=1.4.13
2+
version=1.4.14
33
author=AlexGyver <[email protected]>
44
maintainer=AlexGyver <[email protected]>
55
sentence=Bunch of converting functions for string data

src/utils/Text.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ class Text : public Printable {
482482
if (start < 0) start += ulen;
483483
if (end < 0) end += ulen;
484484
}
485-
if (start < 0 || end < 0 || start > _len || end > _len) return Text();
485+
if (start < 0 || end < 0 || start > (int16_t)_len || end > (int16_t)_len) return Text();
486486
return substring(unicodeToPos(start), end ? unicodeToPos(end) : 0);
487487
}
488488

0 commit comments

Comments
 (0)