diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | builtin.c | 3 |
2 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2014-08-03 Arnold D. Robbins <arnold@skeeve.com> + + * builtin.c (format_tree): Don't need to check return value of + wctombr for -2. Thanks to Eli Zaretskii for pointing this out. + 2014-07-31 Arnold D. Robbins <arnold@skeeve.com> * builtin.c (format_tree): Make %c handling more sane on Windows. @@ -1081,8 +1081,7 @@ check_pos: count = wcrtomb(buf, wc, & mbs); if (count == 0 - || count == (size_t)-1 - || count == (size_t)-2) { + || count == (size_t) -1) { if (do_lint) lintwarn( _("[s]printf: value %g is not a valid wide character"), |