remove unneeded cast

This commit is contained in:
J. Nick Koston 2025-07-17 13:34:00 -10:00
parent f5c6e03404
commit 732370effc
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -3132,7 +3132,7 @@ void BluetoothLERawAdvertisement::dump_to(std::string &out) const {
out.append("\n");
out.append(" data: ");
out.append(format_hex_pretty(reinterpret_cast<const char *>(this->data), this->data_len));
out.append(format_hex_pretty(this->data, this->data_len));
out.append("\n");
out.append("}");
}

View File

@ -657,7 +657,7 @@ class FixedArrayBytesType(TypeInfo):
return f"buffer.encode_bytes({self.number}, this->{self.field_name}, this->{self.field_name}_len);"
def dump(self, name: str) -> str:
o = f"out.append(format_hex_pretty(reinterpret_cast<const char*>({name}), {name}_len));"
o = f"out.append(format_hex_pretty({name}, {name}_len));"
return o
def get_size_calculation(self, name: str, force: bool = False) -> str: