fix pointer type in debug mode.

Signed-off-by: Guanglin Xu <mzguanglin@gmail.com>