1.1 --- a/core/smn_string.cpp Sat Jan 06 19:35:25 2007 +0000
1.2 +++ b/core/smn_string.cpp Sun Jan 07 01:30:28 2007 +0000
1.3 @@ -84,8 +84,9 @@
1.4 {
1.5 char *str;
1.6 pCtx->LocalToString(params[2], &str);
1.7 + size_t res = UTIL_Format(str, params[3], "%d", params[1]);
1.8
1.9 - return snprintf(str, params[3], "%d", params[1]);
1.10 + return static_cast<cell_t>(res);
1.11 }
1.12
1.13 static cell_t sm_strtofloat(IPluginContext *pCtx, const cell_t *params)
1.14 @@ -102,8 +103,9 @@
1.15 {
1.16 char *str;
1.17 pCtx->LocalToString(params[2], &str);
1.18 + size_t res = UTIL_Format(str, params[3], "%f", sp_ctof(params[1]));
1.19
1.20 - return snprintf(str, params[3], "%f", sp_ctof(params[1]));
1.21 + return static_cast<cell_t>(res);
1.22 }
1.23
1.24 static cell_t sm_formatex(IPluginContext *pCtx, const cell_t *params)