tool_operate.c: Fixed compilation warning

An enumerated type is mixed with another type.