interactive-matter/aJson — Issue #15: floats with numbers after the dot (e.g., 40.5) are parsed incorrectly
Author: interactive-matter
Created: 2011-11-03 13:20:42+00:00
State: open

We found another issue in the aJSON lib: floats with numbers after the dot (e.g., 40.5) are parsed incorrectly. Our fix:

In file aJSON.cpp in function aJsonClass::parseNumber (Line 130) changed

unsigned char scale = 0;

to

int scale = 0;

Mind, though, that we have not tested this fix with numbers containing exponents.