Closed waldnercharles closed 3 months ago
Did you have a fix for implemented already?
I implemented C-style conversions in the simplest way that first came to me. Let me know if you have a better method!
https://github.com/RandyGaul/cute_framework/commit/6120ff13978da675140d4226f26fa6f149e18630
And thanks for the test case, I've copied it into CF.
When attempting to deserialize an int to a float, yyjson appears to return 0. eg
"health": 100 /* vs */ "health": 100.0
. The former will return 0 when callingcf_json_get_float
Here's a quick test case I threw together with behavior I've implemented in my personal project. If you think the behavior is reasonable, I can implement it in the cf wrapper as well.