A court of inquiry may commit the defendant for a different offense than that stated in the warrant if the evidence requires it.