commit | 7f14e706ec41fa525612b9519277429652bbaab9 | [log] [tgz] |
---|---|---|
author | Peter Mitsis <peter.mitsis@windriver.com> | Fri Mar 18 10:48:02 2016 -0400 |
committer | Gerrit Code Review <gerrit@zephyrproject.org> | Sat Mar 19 11:03:54 2016 +0000 |
tree | f20d54a7b217261e570a81d5157a4ce12644ad66 | |
parent | de5dd2f0ffe5ba934650c7526126028c4be247ed [diff] |
printf: Limit width modifier to [0..MAXFLD] When capping the the absolute value of the width modifier in printf(), it must first be cast to an 'unsigned'. This stems from the fact that in two's complement, not all negative numbers have a positive counterpart. Change-Id: I3e6f92f68ab1b8dab48bbf883c5ad4b078a93f87 Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>