From: Glenn L McGrath Date: Thu, 22 Aug 2002 19:22:32 +0000 (-0000) Subject: Specify cast X-Git-Tag: 0_60_4~59 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0775a07d87e0c6bd467a61f5457e99ba20ac99ac;p=oweals%2Fbusybox.git Specify cast --- diff --git a/archival/libunarchive/get_header_tar.c b/archival/libunarchive/get_header_tar.c index 1ba37d6d7..38fb04070 100644 --- a/archival/libunarchive/get_header_tar.c +++ b/archival/libunarchive/get_header_tar.c @@ -129,8 +129,8 @@ file_header_t *get_header_tar(FILE * tar_stream) 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); }