View Single Post
Old 03-17-2009, 10:12 AM   #1
cc_
Human being with feelings
 
Join Date: Mar 2009
Posts: 256
Default Small efficiency thing in IParam.cpp

IPlug/IParam.cpp does this:

Code:
		char fmt[16];
		sprintf(fmt, "%%.%df", mDisplayPrecision);
		sprintf(rDisplay, fmt, displayValue);
Doesn't this do the same (for positive mDisplayPrecision anyway):

Code:
		sprintf(rDisplay,"%.*f", mDisplayPrecision, displayValue);
cc_ is offline   Reply With Quote