The original sentence apparently means that there is a roof over something, and that there is a space one cubit high, between the lowest part of the roof and the thing, on all four sides. The revised sentence does not convey this sense of the opening being on all four sides, and is ambiguous as to where the one cubit dimension is.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.