Skip to content
Snippets Groups Projects
Unverified Commit 2c112798 authored by Dimitrios Stoupis's avatar Dimitrios Stoupis
Browse files

Convert all casts to C++ compatible an make CI happy

parent 91d282f0
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@ void MemoryManagementService::RawDataMemoryManagement::dumpRawData(Message &requ
readData = static_cast<uint8_t *>( malloc(static_cast<std::size_t >(readLength)) );
for (std::size_t i = 0; i < readLength; i++) {
readData[i] = *((uint8_t *)((std::size_t)startAddress) + i);
readData[i] = *(reinterpret_cast<uint8_t *>(startAddress) + i);
}
report.appendOctetString(readLength, readData);
......
......@@ -33,7 +33,7 @@ int main() {
Message rcvPack = Message(6, 2, Message::TC, 1);
rcvPack.appendEnum8(MemoryManagementService::MemoryID::RAM); // Memory ID
rcvPack.appendUint16(1); // Iteration count
rcvPack.appendUint64(static_cast<uint64_t >((std::size_t)(string))); // Start address
rcvPack.appendUint64(static_cast<uint64_t >(reinterpret_cast<std::size_t >(string))); // Start address
rcvPack.appendUint16(sizeof(string)/ sizeof(string[0])); // Data read length
memMangService.rawDataMemorySubservice.dumpRawData(rcvPack);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment