Bugfix : Incorrect typecasting. casting size_t or offset_t types to unsigned type causes size comparison errors