Returns nonzero if the uint32_t can be converted to a long without losing * data, or 0 if the conversion would lose data. */
| 101 | * data, or 0 if the conversion would lose data. |
| 102 | */ |
| 103 | static int CanMakeLong(uint32_t x) |
| 104 | { |
| 105 | #if UINT32_MAX > LONG_MAX |
| 106 | if(x > LONG_MAX) return 0; |
| 107 | #endif |
| 108 | |
| 109 | (void)x; /* Sometimes unused. */ |
| 110 | return 1; |
| 111 | } |
| 112 | |
| 113 | /* Returns nonzero if the int32_t can be negated properly. INT32_MIN doesn't |
| 114 | * work because its positive value isn't representable inside an int32_t (given |
no outgoing calls
no test coverage detected