Fixed mismatching argument type in function definition.

Mismatching argument type caused compiling error on Mac OS X.