fixed math typo
This commit is contained in:
parent
802018e16e
commit
c3f70c1372
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user