diff --git a/include/misc.h b/include/misc.h index 049e506..31cea79 100644 --- a/include/misc.h +++ b/include/misc.h @@ -8,6 +8,6 @@ void generateTextKeyChain(char *key, int *textKeyChain, int textKeyChainSize); / void deallocateOutput(outputFlags flags); //DEALLOCATES flags void checkKey(char *key, inputFlags flags); //CHECKS IF KEY IS VALID void checkText(char *text, inputFlags flags); //CHECKS IF TEXT IS VALID -int countIntLength(int number); //RETURNS LENGTH OF number +unsigned long countIntLength(int number); //RETURNS LENGTH OF number #endif diff --git a/src/lib/misc.c b/src/lib/misc.c index ca8b272..ef79a52 100644 --- a/src/lib/misc.c +++ b/src/lib/misc.c @@ -191,7 +191,7 @@ void checkText(char *text, inputFlags flags) } } -int countIntLength(int number) +unsigned long countIntLength(int number) { int returning = 1; int buffer = 10;