Skip to content

Comments

Updated README and made source code more efficient #4

Open
otuva wants to merge 4 commits intoEgeBalci:masterfrom
otuva:master
Open

Updated README and made source code more efficient #4
otuva wants to merge 4 commits intoEgeBalci:masterfrom
otuva:master

Conversation

@otuva
Copy link

@otuva otuva commented Apr 27, 2021

The 'KEY' variable was declared 2 times. and condition for the 'KEY' in for loop was out of range.

The for loop is infinite because a char goes from -128 to +127, and thus never reaches 190. And using int inside for loop is inefficient. I put unsigned before char to make range 0 till 255 so condition can be viable.

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

Successfully merging this pull request may close these issues.

1 participant