udp/json-parser — Issue #6: Problem with flag_exponent and flag_got_exponent_sign
Author: BeLZeL
Created: 2012-03-08 13:39:38+00:00
State: open

Hi,

I tried this little example, and got a parsing error :
{ "min": -1.0e+28, "max": 1.0e+28 }

I suggest you a patch.

I change this line :
flags &= ~ flag_exponent | flag_got_exponent_sign;
into this one :
flags &= ~ ( flag_exponent | flag_got_exponent_sign );

And now it works.

Kind regards