| 4263 | #endif |
| 4264 | |
| 4265 | JSONCPP_STRING valueToString(LargestInt value) { |
| 4266 | UIntToStringBuffer buffer; |
| 4267 | char* current = buffer + sizeof(buffer); |
| 4268 | if (value == Value::minLargestInt) { |
| 4269 | uintToString(LargestUInt(Value::maxLargestInt) + 1, current); |
| 4270 | *--current = '-'; |
| 4271 | } else if (value < 0) { |
| 4272 | uintToString(LargestUInt(-value), current); |
| 4273 | *--current = '-'; |
| 4274 | } else { |
| 4275 | uintToString(LargestUInt(value), current); |
| 4276 | } |
| 4277 | assert(current >= buffer); |
| 4278 | return current; |
| 4279 | } |
| 4280 | |
| 4281 | JSONCPP_STRING valueToString(LargestUInt value) { |
| 4282 | UIntToStringBuffer buffer; |
no test coverage detected