C++ (Qt) * Also: ternary ifs are bad. Do as I say, not as I do. */ n_interp_frames = n_from_frames < n_to_frames ? (n_from_frames / INTERP_DIVISOR) : (n_to_frames / INTERP_DIVISOR);