int from pointer warning fixed