diff options
| author | nyamatongwe <unknown> | 2001-11-16 11:41:22 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2001-11-16 11:41:22 +0000 | 
| commit | 1c44c10848195b34f569ed1281b087a7d22cb174 (patch) | |
| tree | e51dab7fde55b7fa6b165f19dac2940a58084d9a /include/SString.h | |
| parent | 2e4cd5a427414588d7de72aefba09238c325367c (diff) | |
| download | scintilla-mirror-1c44c10848195b34f569ed1281b087a7d22cb174.tar.gz | |
Patch from Philippe to use precision argument to differentiate between
SString constructors based on int and double.
Diffstat (limited to 'include/SString.h')
| -rw-r--r-- | include/SString.h | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/include/SString.h b/include/SString.h index ff97c0c76..2f096bfb0 100644 --- a/include/SString.h +++ b/include/SString.h @@ -91,9 +91,9 @@ public:  		s = StringDup(number);  		sSize = sLen = (s) ? strlen(s) : 0;  	} -	SString(double d) : sizeGrowth(sizeGrowthDefault) { +	SString(double d, int precision) : sizeGrowth(sizeGrowthDefault) {  		char number[32]; -		sprintf(number, "%.6f", d); +		sprintf(number, "%.*f", precision, d);  		s = StringDup(number);  		sSize = sLen = (s) ? strlen(s) : 0;  	} | 
