Subj : src/sbbs3/js_file.c To : CVS commit From : rswindell Date : Mon Apr 06 2020 06:31 pm src/sbbs3 js_file.c 1.191 1.192 Update of /cvsroot/sbbs/src/sbbs3 In directory cvs:/tmp/cvs-serv15683 Modified Files: js_file.c Log Message: 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/ .