[dmd-beta] beta for dmd 2.042

Trass3r mrmocool at gmx.de
Mon Mar 15 18:44:12 PDT 2010


Third issue:
Somebody messed up std.perf. Doesn't measure anything anymore.

This is the new version, line 95:

interval_t freq;
if (QueryPerformanceFrequency(&freq))
	sm_freq =   freq;
else
	sm_freq =   1000;
sm_fn	=   &_qtc;


sm_fn isn't assigned and the brackets aren't correct (right?)

This is the old version:

if(QueryPerformanceFrequency(&sm_freq))
{
	sm_fn	=   &_qpc;
}
else
{
	sm_freq =   1000;
	sm_fn	=   &_qtc;
}


I don't even know why another variable is used. If  
QueryPerformanceFrequency succeeds, sm_freq is already set; else it gets  
overwritten in the else clause.


More information about the dmd-beta mailing list