fix regression from previous commit

This commit is contained in:
Antoine Cœur 2017-09-19 11:40:25 +08:00
parent b9ce3814d4
commit 5db5451166
2 changed files with 2 additions and 2 deletions

View File

@ -558,7 +558,7 @@ NSString *const SSZipArchiveErrorDomain = @"SSZipArchiveErrorDomain";
NSLog(@"[SSZipArchive] Set attributes failed for directory: %@.", d[@"path"]); NSLog(@"[SSZipArchive] Set attributes failed for directory: %@.", d[@"path"]);
} }
if (err) { if (err) {
NSLog(@"[SSZipArchive] Error setting directory file modification date attribute: %@",err.localizedDescription); NSLog(@"[SSZipArchive] Error setting directory file modification date attribute: %@", err.localizedDescription);
} }
} }
} }

View File

@ -160,7 +160,7 @@ uint32_t tm_to_dosdate(const struct tm *ptm)
else /* range [00, 79] */ else /* range [00, 79] */
fixed_tm.tm_year += 20; fixed_tm.tm_year += 20;
if (!invalid_date(ptm)) if (invalid_date(ptm))
return 0; return 0;
return (uint32_t)(((fixed_tm.tm_mday) + (32 * (fixed_tm.tm_mon + 1)) + (512 * fixed_tm.tm_year)) << 16) | return (uint32_t)(((fixed_tm.tm_mday) + (32 * (fixed_tm.tm_mon + 1)) + (512 * fixed_tm.tm_year)) << 16) |