Branch: refs/heads/master
Home:
https://github.com/Checkmk/checkmk
Commit: 45bac32a37dc16766a9bb26269eba040b4493829
https://github.com/Checkmk/checkmk/commit/45bac32a37dc16766a9bb26269eba040b…
Author: Sven Panne <sven.panne(a)checkmk.com>
Date: 2023-11-06 (Mon, 06 Nov 2023)
Changed paths:
M packages/livestatus/.clang-tidy
M packages/livestatus/src/TrialManager.cc
Log Message:
-----------
Avoid reinterpret_cast.
There's no need to fiddle around with native byte order
etc., see the blog "The byte order fallacy" by Rob Pike:
https://commandcenter.blogspot.com/2012/04/byte-order-fallacy.html
If we *really* cared about performance, we could unroll the
loops by hand, so most compilers would convert these loops
into a no-op on little-endian machines then, but we read/write
only a sinlge 64bit number.
Change-Id: I4f33bef13e2d33fedf339d23f56d88544f0c8fd6