Signed word lengths and indexes

Kagamin spam at here.lot
Wed Jun 16 23:46:13 PDT 2010


Walter Bright Wrote:

> Easy. offset should be a size_t, not an unsigned.

I've hit the bug using size_t at the right side of a+=-b (array length). It's just a long was at the left side (file offset). Such code should actually work in 64bit system and it fails in 32bit. MS compiler reports such portability issues with a warning, I believe.


More information about the Digitalmars-d mailing list