* Avoid implementation-defined overflows during unsigned to signed casts */
| 31 | * Avoid implementation-defined overflows during unsigned to signed casts |
| 32 | */ |
| 33 | static inline char UIntToByte(unsigned i) |
| 34 | { |
| 35 | #if CHAR_MIN == 0 |
| 36 | return i; |
| 37 | #else |
| 38 | CharU2SConverter converter; |
| 39 | |
| 40 | converter.u = i; |
| 41 | return converter.s; |
| 42 | #endif |
| 43 | } |
| 44 | |
| 45 | #if CHAR_MIN != 0 |
| 46 | union CharS2UConverter |
no outgoing calls
no test coverage detected