Portability fix in lib/inttostr.c.
authorSergey Poznyakoff <gray@gnu.org.ua>
Mon, 15 Mar 2010 17:36:37 +0000 (19:36 +0200)
committerSergey Poznyakoff <gray@gnu.org.ua>
Mon, 15 Mar 2010 17:36:37 +0000 (19:36 +0200)
ChangeLog
lib/inttostr.c

index 6c1aaa3476542501e536c7f42357b22881dc14ef..e404640f69716c6c732bde86d034591353ef54f0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 775a2a28f7d3bada798c13fc3da420c5b4b528e3..7a4a47f5f67e42e2ec035f5031940b2354d57b57 100644 (file)
 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)
     {