From d036981226a76bd58d05485e96e0775808bccaff Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Mon, 15 Mar 2010 19:36:37 +0200 Subject: [PATCH] Portability fix in lib/inttostr.c. --- ChangeLog | 6 ++++++ lib/inttostr.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6c1aaa347..e404640f6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-03-15 Sergey Poznyakoff + + * lib/inttostr.c (inttostr): Make sure the invocation of verify + appears before executable statements. Suggested by Petr Sumbera + . + 2010-03-14 Bruno Haible * tests/test-flock.c (test_exclusive): Comment out a test that causes diff --git a/lib/inttostr.c b/lib/inttostr.c index 775a2a28f..7a4a47f5f 100644 --- a/lib/inttostr.c +++ b/lib/inttostr.c @@ -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) { -- 2.11.0