fixed math typo

This commit is contained in:
Václav Šmejkal 2022-04-23 17:47:15 +02:00
parent 802018e16e
commit c3f70c1372

View File

@ -97,7 +97,7 @@ encryptText(char *text, char *keyNew)
numberBuffer += floor(log10(abs(textKeyChain[i]))) + 1; numberBuffer += floor(log10(abs(textKeyChain[i]))) + 1;
//CHECK FOR MINUS //CHECK FOR MINUS
if (textKeyChain[i] > 0) numberBuffer++; if (textKeyChain[i] < 0) numberBuffer++;
} }
//ALLOCATE returningText (WITH THE SEPARATORS) //ALLOCATE returningText (WITH THE SEPARATORS)
@ -122,6 +122,6 @@ encryptText(char *text, char *keyNew)
//DEALLOCATION //DEALLOCATION
free(key); free(key);
return returningText; return returningText;
} }