about summary refs log tree commit diff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-05-17 12:44:52 -0700
committerH.J. Lu <hjl.tools@gmail.com>2012-05-17 12:44:52 -0700
commit2e4c1e9edb2a0f25a4d8de961dd4b7518c88bc54 (patch)
tree1d343baf225bee6430a4e2c017cdda3bfdd81789
parentde7f5ce7c595f4741029f7e63429826f8e82b340 (diff)
downloadglibc-2e4c1e9edb2a0f25a4d8de961dd4b7518c88bc54.tar.gz
glibc-2e4c1e9edb2a0f25a4d8de961dd4b7518c88bc54.tar.xz
glibc-2e4c1e9edb2a0f25a4d8de961dd4b7518c88bc54.zip
Cast to unsigned long
-rw-r--r--ChangeLog4
-rw-r--r--sysdeps/x86_64/tst-mallocalign1.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 284adae7ff..793bc73e71 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
+
 2012-05-17  Andreas Jaeger  <aj@suse.de>
 
 	* sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
diff --git a/sysdeps/x86_64/tst-mallocalign1.c b/sysdeps/x86_64/tst-mallocalign1.c
index 5ce68daa8e..d4e603609a 100644
--- a/sysdeps/x86_64/tst-mallocalign1.c
+++ b/sysdeps/x86_64/tst-mallocalign1.c
@@ -26,7 +26,7 @@ test (size_t s)
 {
   void *p = malloc (s);
 
-  printf ("malloc: %d, %p: %ld\n", s, p,
+  printf ("malloc: %ld, %p: %ld\n", (unsigned long) s, p,
 	  ((unsigned long) p) & ALIGN_MASK);
   return p;
 }