[PATCH] Fix type warnings from clang compiler.