Skip to content

Commit ab27af4

Browse files
committed
upd
1 parent 23e1cd7 commit ab27af4

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.26
2+
version=1.4.27
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
@@ -614,7 +614,7 @@ class Text : public Printable {
614614
char charAt(int idx) const {
615615
if (idx < 0) idx += length();
616616
if (idx < 0) return 0;
617-
return (valid() && idx < _len) ? _charAt(idx) : 0;
617+
return (valid() && (uint16_t)idx < _len) ? _charAt(idx) : 0;
618618
}
619619

620620
// Получить символ по индексу. Допускаются отрицательные

0 commit comments

Comments
 (0)