Frank Heckenbach wrote:
However, I do see a GPC problem here. According to ISO Pascal, operations should not be done on smaller than Integer types. GPC followed this rule for `+' and `-', but not for other operations. The attached patch fixes this. It doesn't cause any regressions in the test suite on IA32 (but I haven't tested on other systems yet, and type size changes are always somewhat critical -- that's why I included 3 versions of these test programs, even if rather similar). Whether SizeOf gives a result of type SizeType or another type is quite irrelevant as GPC mostly ignores types of integer constants.
Works without regressions on AMD-64.