1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

add comment to suppress casting warning

Signed-off-by: Pascal Bauer <pascal.bauer@rwth-aachen.de>
This commit is contained in:
Pascal Bauer 2022-12-16 17:01:42 +01:00 committed by Niklas Eiling
parent 1c85a4330f
commit 56dcf9fac6

View file

@ -135,7 +135,7 @@ int main(int argc, char* argv[])
for (size_t i = 0; i*4 < bytesRead; i++) {
int32_t ival = mem[cur][i];
float fval = *((float*)(&ival));
float fval = *((float*)(&ival)); // cppcheck-suppress invalidPointerCast
//std::cerr << std::hex << ival << ",";
std::cerr << fval << std::endl;
/*int64_t ival = (int64_t)(mem[1] & 0xFFFF) << 48 |