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