[Issue 5540] Probable bug-hiding redundancies

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jun 19 16:49:14 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5540



--- Comment #4 from bearophile_hugs at eml.cc 2011-06-19 16:44:30 PDT ---
(In reply to comment #3)
> See a very nice example of bug of this kind, that's easy to find for a compiler
> or lint:
> 
> http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=139021

The bug in Andrej Mitrovic code was:

if (mmioRead(hmmio, cast(LPSTR)&drum, DRUM.sizeof != DRUM.sizeof))
{
    mmioClose(hmmio, 0);
    return szErrorCannotRead;
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list