Mercurial > gnulib
changeset 12997:3870d1e5f8d4
Portability fix in lib/inttostr.c.
author | Sergey Poznyakoff <gray@gnu.org.ua> |
---|---|
date | Mon, 15 Mar 2010 19:36:37 +0200 |
parents | 0de35819273a |
children | de97ad7c83eb |
files | ChangeLog lib/inttostr.c |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Mon Mar 15 03:07:26 2010 +0100 +++ b/ChangeLog Mon Mar 15 19:36:37 2010 +0200 @@ -1,3 +1,9 @@ +2010-03-15 Sergey Poznyakoff <gray@gnu.org.ua> + + * lib/inttostr.c (inttostr): Make sure the invocation of verify + appears before executable statements. Suggested by Petr Sumbera + <Petr.Sumbera@Sun.COM>. + 2010-03-14 Bruno Haible <bruno@clisp.org> * tests/test-flock.c (test_exclusive): Comment out a test that causes
--- a/lib/inttostr.c Mon Mar 15 03:07:26 2010 +0100 +++ b/lib/inttostr.c Mon Mar 15 19:36:37 2010 +0200 @@ -29,10 +29,10 @@ char * inttostr (inttype i, char *buf) { + verify (TYPE_SIGNED (inttype) == inttype_is_signed); char *p = buf + INT_STRLEN_BOUND (inttype); *p = 0; - verify (TYPE_SIGNED (inttype) == inttype_is_signed); #if inttype_is_signed if (i < 0) {