| 4226 | #endif |
| 4227 | |
| 4228 | JSONCPP_STRING valueToString(LargestInt value) { |
| 4229 | UIntToStringBuffer buffer; |
| 4230 | char* current = buffer + sizeof(buffer); |
| 4231 | if (value == Value::minLargestInt) { |
| 4232 | uintToString(LargestUInt(Value::maxLargestInt) + 1, current); |
| 4233 | *--current = '-'; |
| 4234 | } else if (value < 0) { |
| 4235 | uintToString(LargestUInt(-value), current); |
| 4236 | *--current = '-'; |
| 4237 | } else { |
| 4238 | uintToString(LargestUInt(value), current); |
| 4239 | } |
| 4240 | assert(current >= buffer); |
| 4241 | return current; |
| 4242 | } |
| 4243 | |
| 4244 | JSONCPP_STRING valueToString(LargestUInt value) { |
| 4245 | UIntToStringBuffer buffer; |
no test coverage detected