Tha Coalition of Airline Pilots Associations ( Capapilots.org) states under chapter 8.Medical facts for pilots 8-1-2. Effects of Altitude, under section D:
d. Decompression Sickness After Scuba Diving.
1. A pilot or passenger who intends to fly after scuba diving should allow the body sufficient time to rid itself of excess nitrogen absorbed during diving. If not, decompression sickness due to evolved gas can occur during exposure to low altitude and create a serious inflight emergency.
2. The recommended waiting time before going to flight altitudes of up to 8,000 feet is at least 12 hours after diving which has not required controlled ascent (nondecompression stop diving), and at least 24 hours after diving which has required controlled ascent (decompression stop diving). The waiting time before going to flight altitudes above 8,000 feet should be at least 24 hours after any SCUBA dive. These recommended altitudes are actual flight altitudes above mean sea level (AMSL) and not pressurized cabin altitudes. This takes into consideration the risk of decompression of the aircraft during flight.
NOTICE that it says the altitudes are ACTUAL flight altitudes NOT pressurized cabin altitudes.