Solved `converts between pointers to integer types with different sign'
warning message. In order to keep changes at bare minimum, we just
cast function return.