From b078433f2eaa3d3a00a56ffb76448da4526612bd Mon Sep 17 00:00:00 2001 From: Johnnie Walker Date: Wed, 1 May 2013 12:38:44 +0100 Subject: [PATCH] Fix warning with -Widiomatic-parentheses enabled --- SSZipArchive.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SSZipArchive.m b/SSZipArchive.m index 410264f..b3936eb 100644 --- a/SSZipArchive.m +++ b/SSZipArchive.m @@ -305,7 +305,7 @@ NSDirectoryEnumerator *dirEnumerator = [fileManager enumeratorAtPath:directoryPath]; NSString *fileName; - while (fileName = [dirEnumerator nextObject]) { + while ((fileName = [dirEnumerator nextObject])) { BOOL isDir; NSString *fullFilePath = [directoryPath stringByAppendingPathComponent:fileName]; [fileManager fileExistsAtPath:fullFilePath isDirectory:&isDir];