securely comparison of floating-point variables */
| 582 | |
| 583 | /* securely comparison of floating-point variables */ |
| 584 | static cJSON_bool compare_double(double a, double b) |
| 585 | { |
| 586 | double maxVal = fabs(a) > fabs(b) ? fabs(a) : fabs(b); |
| 587 | return (fabs(a - b) <= maxVal * DBL_EPSILON); |
| 588 | } |
| 589 | |
| 590 | /* Render the number nicely from the given item into a string. */ |
| 591 | static cJSON_bool print_number(const cJSON * const item, printbuffer * const output_buffer) |
no outgoing calls
no test coverage detected
searching dependent graphs…