In a rotating compressor, an outer peripheral surface of a partition member which
is secured firmly to a casing so as to divide the inside of the casing into a high-level
pressure space and a low-level pressure space, is provided with a peripheral groove
for allowing for shrinkage of the casing at a weld area where a trunk part and
end plate of the casing are welded together. As a result of such arrangement, the
partition member is strongly tightened by making utilization of such shrinkage,
thereby not only enhancing sealability between the high-level pressure space and
the low-level pressure space in the inside of the casing but also preventing a
drop in workability during assembling and an increase in cost.