ObjFW  Diff

Differences From Artifact [1d42b1617a]:

To Artifact [26fa9bdcde]:


70
71
72
73
74
75
76
77








78
79
80
81
82
83
84

85
86
87
88
89
90
91
	_compressionMethod = compressionMethod;
}

- (void)setModificationDate: (OFDate *)date
{
	void *pool = objc_autoreleasePoolPush();

	if (_timeZone != 0x7F)








		date = [date dateByAddingTimeInterval:
		    -(OFTimeInterval)_timeZone * 900];

	_lastModifiedFileDate = (((date.year - 1980) & 0xFF) << 9) |
	    ((date.monthOfYear & 0x0F) << 5) | (date.dayOfMonth & 0x1F);
	_lastModifiedFileTime = ((date.hour & 0x1F) << 11) |
	    ((date.minute & 0x3F) << 5) | ((date.second >> 1) & 0x0F);


	objc_autoreleasePoolPop(pool);
}

- (void)setCRC16: (uint16_t)CRC16
{
	_CRC16 = CRC16;







|
>
>
>
>
>
>
>
>



|
|
|
|
>







70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
	_compressionMethod = compressionMethod;
}

- (void)setModificationDate: (OFDate *)date
{
	void *pool = objc_autoreleasePoolPush();

	if (_timeZone == 0x7F) {
		_lastModifiedFileDate =
		    (((date.localYear - 1980) & 0xFF) << 9) |
		    ((date.localMonthOfYear & 0x0F) << 5) |
		    (date.localDayOfMonth & 0x1F);
		_lastModifiedFileTime = ((date.localHour & 0x1F) << 11) |
		    ((date.localMinute & 0x3F) << 5) |
		    ((date.second >> 1) & 0x0F);
	} else {
		date = [date dateByAddingTimeInterval:
		    -(OFTimeInterval)_timeZone * 900];

		_lastModifiedFileDate = (((date.year - 1980) & 0xFF) << 9) |
		    ((date.monthOfYear & 0x0F) << 5) | (date.dayOfMonth & 0x1F);
		_lastModifiedFileTime = ((date.hour & 0x1F) << 11) |
		    ((date.minute & 0x3F) << 5) | ((date.second >> 1) & 0x0F);
	}

	objc_autoreleasePoolPop(pool);
}

- (void)setCRC16: (uint16_t)CRC16
{
	_CRC16 = CRC16;