fixing compiler warning

matching types