diff options
author | nyamatongwe <devnull@localhost> | 2001-11-16 11:41:22 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2001-11-16 11:41:22 +0000 |
commit | 4ef16ca85bcf0ba44d85c4b35fbf4206b392ef8c (patch) | |
tree | e51dab7fde55b7fa6b165f19dac2940a58084d9a /include/SString.h | |
parent | fd7278433ff3721b1d9abe828fdd44b9721a9c44 (diff) | |
download | scintilla-mirror-4ef16ca85bcf0ba44d85c4b35fbf4206b392ef8c.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; } |