The impact of global warming on food prices and hunger could be large over the next 20 years. But even as some people are hurt, others would be helped out of poverty, according to a new Stanford University study.