Browse Source

fixed wr_arhdr: date and size

ceriel 36 years ago
parent
commit
ef8f1c778a
1 changed files with 4 additions and 4 deletions
  1. 4 4
      modules/src/object/wr_arhdr.c

+ 4 - 4
modules/src/object/wr_arhdr.c

@@ -21,13 +21,13 @@ wr_arhdr(fd, arhdr)
 		while (i--) {
 			*c++ = *p++;
 		}
-		put2(arhdr->ar_date>>16,c); c += 2;
-		put2(arhdr->ar_date,c); c += 2;
+		put2((int)(arhdr->ar_date>>16),c); c += 2;
+		put2((int)(arhdr->ar_date),c); c += 2;
 		*c++ = arhdr->ar_uid;
 		*c++ = arhdr->ar_gid;
 		put2(arhdr->ar_mode,c); c += 2;
-		put2(arhdr->ar_size>>16,c); c += 2;
-		put2(arhdr->ar_size,c);
+		put2((int)(arhdr->ar_size>>16),c); c += 2;
+		put2((int)(arhdr->ar_size),c);
 		wr_bytes(fd, buf, (long) AR_TOTAL);
 	}
 #if WORDS_REVERSED && !BYTES_REVERSED