[Forensics-changes] [yara] 283/368: test-alignment: Fix number formatting in printf

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:30:48 UTC 2017


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag v3.5.0
in repository yara.

commit e987ce3140343ce97fd6773c9bb515fa5bad4592
Author: Hilko Bengen <bengen at hilluzination.de>
Date:   Wed May 25 01:46:34 2016 +0200

    test-alignment: Fix number formatting in printf
---
 tests/test-alignment.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/test-alignment.c b/tests/test-alignment.c
index 3a2c9e6..ebddc98 100644
--- a/tests/test-alignment.c
+++ b/tests/test-alignment.c
@@ -22,7 +22,7 @@ int err = 0;
 #define CHECK_SIZE(expr,size)                          \
   do                                                   \
   {                                                    \
-    printf("sizeof("#expr") = %lu ...", sizeof(expr)); \
+    printf("sizeof("#expr") = %zd ...", sizeof(expr)); \
     if (sizeof(expr) == size)                          \
     {                                                  \
       puts("ok");                                      \
@@ -37,7 +37,7 @@ int err = 0;
 #define CHECK_OFFSET(expr,offset,subexpr)             \
   do                                                  \
   {                                                   \
-    printf("offsetof("#expr", "#subexpr") = %lu ...", \
+    printf("offsetof("#expr", "#subexpr") = %zd ...", \
            offsetof(expr, subexpr));                  \
     if (offsetof(expr, subexpr) == offset)            \
     {                                                 \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git



More information about the forensics-changes mailing list