Fix size checks master
authorRobert Pengelly <robertapengelly@hotmail.com>
Thu, 19 Jun 2025 15:08:42 +0000 (16:08 +0100)
committerRobert Pengelly <robertapengelly@hotmail.com>
Thu, 19 Jun 2025 15:08:42 +0000 (16:08 +0100)
ranlib.c

index c833d1ff363ea85a8e32df9aeb592ab5f01d4562..f2a832b5a48cc0a849083d5c7a8e5d1c1c042dfd 100644 (file)
--- a/ranlib.c
+++ b/ranlib.c
@@ -556,7 +556,7 @@ void ranlib (FILE *arfp) {
     char temp[16];
     long offset = 0;
     
     char temp[16];
     long offset = 0;
     
-#if     UINT_MAX == 65536
+#if     UINT_MAX == 65535
     long bytes;
 #else
     int bytes;
     long bytes;
 #else
     int bytes;
@@ -678,7 +678,7 @@ void ranlib (FILE *arfp) {
     memcpy (header.group, temp, 6);
     memcpy (header.mode, temp, 8);
     
     memcpy (header.group, temp, 6);
     memcpy (header.mode, temp, 8);
     
-#if     UINT_MAX == 65536
+#if     UINT_MAX == 65535
     len = sprintf (temp, "%ld", bytes + 4);
 #else
     len = sprintf (temp, "%d", bytes + 4);
     len = sprintf (temp, "%ld", bytes + 4);
 #else
     len = sprintf (temp, "%d", bytes + 4);