Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode 10.1 warning: Possible misuse of comma operator here #15

Open
funnel20 opened this issue Feb 2, 2019 · 0 comments
Open

Xcode 10.1 warning: Possible misuse of comma operator here #15

funnel20 opened this issue Feb 2, 2019 · 0 comments

Comments

@funnel20
Copy link

funnel20 commented Feb 2, 2019

Thank you for this great class.

While using it in my Xcode 10.1 project, it shows the following warning:

Obfuscator.m:173:25: Possible misuse of comma operator here

This is the code:

// If at end of key data, reset count and
// set key pointer back to start of key value
if (++keyIndex == [self.salt length])
    keyIndex = 0, keyPtr = keyData;

I've solved it by splitting the statements over multiple lines within the IF condition:

// If at end of key data, reset count and
// set key pointer back to start of key value
if (++keyIndex == [self.salt length])
{
    keyIndex = 0;
    keyPtr = keyData;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant