| 4165 | #endif |
| 4166 | |
| 4167 | String valueToString(LargestInt value) { |
| 4168 | UIntToStringBuffer buffer; |
| 4169 | char *current = buffer + sizeof(buffer); |
| 4170 | if (value == Value::minLargestInt) { |
| 4171 | uintToString(LargestUInt(Value::maxLargestInt) + 1, current); |
| 4172 | *--current = '-'; |
| 4173 | } else if (value < 0) { |
| 4174 | uintToString(LargestUInt(-value), current); |
| 4175 | *--current = '-'; |
| 4176 | } else { |
| 4177 | uintToString(LargestUInt(value), current); |
| 4178 | } |
| 4179 | assert(current >= buffer); |
| 4180 | return current; |
| 4181 | } |
| 4182 | |
| 4183 | String valueToString(LargestUInt value) { |
| 4184 | UIntToStringBuffer buffer; |
no test coverage detected