fixed implicit type cast in function parameters