I'm guessing that's an ideal gas calculation
As the atmosphere heats up it expands, density decreases. But the Earth's atmosphere varies in thickness from night to day, and with altitude. I doubt global warming will have any noticeable effect against that.
