fixed a compiler warning (type conversion)