drop c++ style comments
get rid of warning by casting