Addressed the issues related with the comparison between signed and unsigned integers.