Jukka Virtanen wrote:
In ANSI C the result of (ptr - ptr) is of type ptrdiff_t, which in the alpha is (signed long).
Using cast (unsigned size_t) might not be a good idea, at least I do not know if Ansi C quarantees that size_t always is as large as ptrdiff_t.
While we're at it: would it be possible to have predefined Pascal types as size_t and ptrdiff_t (and maybe other types?) so that such calculations can be done in Pascal?