1
0
Fork 0
forked from len0rd/rockbox

puzzles: resync with upstream

This brings puzzles to upstream commit 84d3fd2.

Change-Id: I808a197f868032d771fc101a15666c5ec4b9f94b
This commit is contained in:
Franklin Wei 2017-09-30 17:47:13 -04:00
parent ea679de837
commit b9386109e8
26 changed files with 1037 additions and 583 deletions

View file

@ -375,7 +375,7 @@ void copy_left_justified(char *buf, size_t sz, const char *str)
/* another kludge for platforms without %g support in *printf() */
int ftoa(char *buf, float f)
{
return sprintf(buf, "%d.%06d", (int)f, (int)((f - (int)f)*1e6));
return sprintf(buf, "%d.%06d", (int)f, abs((int)((f - (int)f)*1e6)));
}
/* vim: set shiftwidth=4 tabstop=8: */