והאמר רב גידל אמר רב חייא בר יוסף אמר רב: בית שאין בתוכו עשרה, וקרויו משלימו לעשרה - על גגו מותר לטלטל בכולו, בתוכו אין מטלטלין בו אלא ארבע אמות.
Soncino translates:
R. Gidal said in the name of R. Hiyya b. Joseph in Rab's name: In the case of a house, the inside of which is not ten [hand breadths in height] but its covering makes it up to ten, it is permitted to carry on the roof over the whole [area]; but within, one may carry only four cubits.
A diagram might help:
