[dmd-beta] beta for dmd 2.042

Trass3r mrmocool at gmx.de
Mon Mar 15 18:52:37 PDT 2010

> 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.

Ah never mind. Cause it's now const and not an lvalue.
The following is the corrected code. Tested it, works fine again:

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

More information about the dmd-beta mailing list