MCPcopy Create free account
hub / github.com/Icinga/icinga2 / ByteToUInt

Function ByteToUInt

test/base-object-packer.cpp:61–71  ·  view source on GitHub ↗

* Avoid implementation-defined underflows during signed to unsigned casts */

Source from the content-addressed store, hash-verified

59 * Avoid implementation-defined underflows during signed to unsigned casts
60 */
61static inline unsigned ByteToUInt(char c)
62{
63#if CHAR_MIN == 0
64 return c;
65#else
66 CharS2UConverter converter;
67
68 converter.s = c;
69 return converter.u;
70#endif
71}
72
73/**
74 * Compare the expected output with the actual output

Callers 1

AssertPackObjectResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected