Skip to content
Permalink
Browse files
ConfigBlock: Use wtof instead of swscanf_s to convert string->float.
Load time: 2.74s -> 2.54s
  • Loading branch information
rygorous committed Mar 4, 2013
1 parent b5a6243 commit 574e48e
Showing 1 changed file with 1 addition and 1 deletion.
@@ -130,7 +130,7 @@ void CPUTConfigEntry::ValueAsFloatArray(float *pFloats, int count)
{
if(szCurrValue == NULL)
return;
swscanf_s(szCurrValue, _L("%f"), pFloats+ii);
pFloats[ii] = (float) _wtof(szCurrValue);
szCurrValue = wcstok_s(NULL, _L(" "), &szNewValue);

}

0 comments on commit 574e48e

Please sign in to comment.