configurator: Fix compiler warning with compare