[*] Off by one indexed extent

This commit is contained in:
Reece Wilson 2024-03-10 09:45:03 +00:00
parent 6913daae7d
commit 951f9b73f3
2 changed files with 2 additions and 2 deletions

View File

@ -1101,7 +1101,7 @@ namespace Aurora::Console::ConsoleStd
else
{
const char *pAnsiCode =
static_cast<EAnsiColor>(msg.color) <= EAnsiColor::eEnumCount ?
static_cast<EAnsiColor>(msg.color) < EAnsiColor::eEnumCount ?
kAnsiColorForegroundToVirtualEscape[static_cast<AuUInt>(msg.color)] :
"";

View File

@ -1543,7 +1543,7 @@ namespace Aurora::Console::ConsoleTTY
AuString writeLine;
const char *pAnsiCode =
static_cast<EAnsiColor>(color) <= EAnsiColor::eEnumCount ?
static_cast<EAnsiColor>(color) < EAnsiColor::eEnumCount ?
kAnsiColorForegroundToVirtualEscape[static_cast<AuUInt>(color)] :
"";