git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed some encodings.
[stg.git]
/
stglibs
/
common.lib
/
common.cpp
diff --git
a/stglibs/common.lib/common.cpp
b/stglibs/common.lib/common.cpp
index 622f64f7f11b2b31fbb31d359fea6af743707dbc..c27a387d647949bbb8a27791c955bff6de10f3ee 100644
(file)
--- a/
stglibs/common.lib/common.cpp
+++ b/
stglibs/common.lib/common.cpp
@@
-823,7
+823,8
@@
return unsigned2str(x, s);
const std::string & x2str(double x, std::string & s)
{
char buf[256];
-s = snprintf(buf, sizeof(buf), "%f", x);
+snprintf(buf, sizeof(buf), "%f", x);
+s = buf;
return s;
}
//---------------------------------------------------------------------------