diff --git a/elfio/elfio_dump.hpp b/elfio/elfio_dump.hpp
index 913011ecde003a0cfaf16e15974358909c0e7133..4ace66514d9941a3419d1be3116706915b479621 100644
--- a/elfio/elfio_dump.hpp
+++ b/elfio/elfio_dump.hpp
@@ -752,7 +752,7 @@ class dump
 //------------------------------------------------------------------------------
     static void
     dynamic_tag( std::ostream& out,
-                 int           no,
+                 Elf_Xword     no,
                  Elf_Xword     tag,
                  Elf_Xword     value,
                  std::string   str,