Change up strcasecmp/strncasecmp to be more C++y
This commit is contained in:
+2
-2
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user