Closed mattbillenstein closed 7 years ago
Didn't your mother ever tell you to always use unified diffs ;)
Anyways, I'm on a plane tonight so I'll take a look and add a test case and hopefully get a release ready for when I touch down :)
rtyler: can't you just always use the yajl_gen_number call and format yer numbers into strings yourself?
I've found an inconsistency with how the built-in json module and yajl handle dumping long ints on 32-bit platforms:
Basically PyLong_AsLong catches the overflow and passes -1 to yajl_gen_integer() ...
Here's a patch you might consider:
Which replicates the json.dumps behavior: