Specify cast
diff --git a/archival/libunarchive/get_header_tar.c b/archival/libunarchive/get_header_tar.c
index 1ba37d6..38fb040 100644
--- a/archival/libunarchive/get_header_tar.c
+++ b/archival/libunarchive/get_header_tar.c
@@ -129,8 +129,8 @@
 	tar_entry->link_name =
 		strlen(tar.formated.linkname) ? xstrdup(tar.formated.linkname) : NULL;
 	tar_entry->device =
-		(strtol(tar.formated.devmajor, NULL, 8) << 8) +
-		strtol(tar.formated.devminor, NULL, 8);
+		(dev_t) ((strtol(tar.formated.devmajor, NULL, 8) << 8) +
+				 strtol(tar.formated.devminor, NULL, 8));
 
 	return (tar_entry);
 }