COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :
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
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:48 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.