Pointer comparisons were being treated as signed integers. Now they are handled as unsigned integers.

This commit is contained in:
Tomas Lindquist Olsen
2008-09-04 17:24:10 +02:00
parent ee29f29659
commit 3a8125b7c8
2 changed files with 14 additions and 4 deletions

8
tests/mini/ptrcond.d Normal file
View File

@@ -0,0 +1,8 @@
module mini.ptrcond;
void main()
{
char[4]* cp;
void* vp = &cp;
assert(cp < vp);
}