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 6c1aaa3..e404640 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 775a2a2..7a4a47f 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)
     {