]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Shrink array for days per month. Saves 31 Bytes on AMD64.
authorJoerg Sonnenberger <joerg@bec.de>
Fri, 7 Apr 2017 12:10:52 +0000 (14:10 +0200)
committerJoerg Sonnenberger <joerg@bec.de>
Fri, 7 Apr 2017 12:10:52 +0000 (14:10 +0200)
libarchive/archive_getdate.c

index fe43ae820aeea19268fd56cf4efec7c06ee1b2ce..030c083ce716b6c623c64d067a716eebbfddfd71 100644 (file)
@@ -691,7 +691,7 @@ Convert(time_t Month, time_t Day, time_t Year,
        time_t Hours, time_t Minutes, time_t Seconds,
        time_t Timezone, enum DSTMODE DSTmode)
 {
-       int DaysInMonth[12] = {
+       signed char DaysInMonth[12] = {
                31, 0, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31
        };
        time_t  Julian;