fixed error: QR_Encode.c:1782:43: error: signed and unsigned type in conditional expression [-Werror=sign-compare] and did some refactoring as well