Skip to content

Commit e3d020c

Browse files
committed
Color.h: fixing some int / size_t mismatch warnings.
1 parent feb8628 commit e3d020c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/Termin8or/screen/Color.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ namespace t8
596596
else
597597
{
598598
if (remaining.starts_with(rgb6_prefix))
599-
start_idx += std::strlen(rgb6_prefix);
599+
start_idx += str::lenI(rgb6_prefix);
600600
int end_idx = start_idx + static_cast<int>(i);
601601
auto substr = str.substr(start_idx, end_idx - start_idx + 1);
602602
auto rgb6_tokens = str::tokenize(substr, { '[', ']', ',', ' ' });
@@ -645,7 +645,7 @@ namespace t8
645645
{
646646
auto compact = !remaining.starts_with(gray24_prefix);
647647
if (!compact)
648-
start_idx += std::strlen(gray24_prefix);
648+
start_idx += str::lenI(gray24_prefix);
649649
int end_idx = start_idx + static_cast<int>(i);
650650
auto substr = str.substr(start_idx, end_idx - start_idx + 1);
651651
auto gr24_tokens = str::tokenize(substr, { '{', '}' });

0 commit comments

Comments
 (0)