Skip to content
Snippets Groups Projects
Commit 456dc2fc authored by rswindell's avatar rswindell
Browse files

Special handling of negative numbers in the writeBin() method implementation.

JS numbers are double-precision floating points (doubles) and doubles cannot
be converted to unsigned integers uniformly across all architectures (e.g.
specifically on ARM, negative numbers would mostly get converted to 0U).

For details, see
https://www.embeddeduse.com/2013/08/25/casting-a-negative-float-to-an-unsigned-int/
parent b30ad131
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment