Replace assert in UTF8 decoder to prevent unexpected reboot (#8807)

This commit is contained in:
HarukiToreda
2025-11-30 08:45:24 -05:00
committed by GitHub
parent bcd4a1176a
commit 5a595a3ae7

View File

@@ -124,7 +124,7 @@ uint32_t InkHUD::AppletFont::toUtf32(std::string utf8)
utf32 |= (utf8.at(3) & 0b00111111);
break;
default:
assert(false);
return 0;
}
return utf32;