'int' is enough for 'length' to migrate code from x86 to x64
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Thu Nov 20 19:15:48 PST 2014
On 11/19/2014 8:22 AM, David Gileadi wrote:
> 2. That there's a need for it at all, which requires knowing that length is
> unsigned. I did know this, but I bet in the heat of programming I'd easily
> forget it. In a semi-complex algorithm the bug could easily hide for a long time
> before biting.
If it was signed, you'd just have different issues hiding.
More information about the Digitalmars-d
mailing list