Change up strcasecmp/strncasecmp to be more C++y

This commit is contained in:
iikorni
2026-08-30 16:40:12 -05:00
parent 7a697986c6
commit da2a9a8fbc
32 changed files with 351 additions and 790 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ namespace net {
const auto c = read_short();
const auto d = read_byte();
if (!c.has_value()) {
if (!c.has_value() || !d.has_value()) {
return std::nullopt;
}
@@ -125,7 +125,7 @@ namespace net {
return std::nullopt;
}
return _data[_offset++];
return static_cast<signed char>(_data[_offset++]);
}
std::optional<std::uint8_t> msg::read_byte() {