* Avoid implementation-defined underflows during signed to unsigned casts */
| 59 | * Avoid implementation-defined underflows during signed to unsigned casts |
| 60 | */ |
| 61 | static 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 |
no outgoing calls
no test coverage detected