Skip to content

print_number() doesn't work with integer #585

@Geartz

Description

@Geartz

I encounter an issue when I try to print JSON string with the cJSON_PrintUnformatted function.

In the sub function print_number(), i saw that "number_buffer" was filled with 5.30498947741318e-315 when item->valuedouble = 1
Is that normal ? Because it make the program crash during the following sscanf.

I used cJSON_AddNumberToObject to add number to my cJSON object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions