summaryrefslogtreecommitdiff
path: root/src/emap/utils
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-28 03:56:12 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-28 03:56:12 +0300
commit447787839e492410611ebe16d01fd5e1ae52e045 (patch)
tree0df52644e225f65e2d23f358dc4db5906c1595be /src/emap/utils
parentd37fe74804b94065259703509b4b3dc3f53c30a5 (diff)
downloadplugin-447787839e492410611ebe16d01fd5e1ae52e045.tar.gz
plugin-447787839e492410611ebe16d01fd5e1ae52e045.tar.bz2
plugin-447787839e492410611ebe16d01fd5e1ae52e045.tar.xz
plugin-447787839e492410611ebe16d01fd5e1ae52e045.zip
Fix different warnings.
Diffstat (limited to 'src/emap/utils')
-rw-r--r--src/emap/utils/formatutils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emap/utils/formatutils.c b/src/emap/utils/formatutils.c
index 57f27cc..00ea637 100644
--- a/src/emap/utils/formatutils.c
+++ b/src/emap/utils/formatutils.c
@@ -97,14 +97,14 @@ int format_sub(struct script_state* st, int translate)
}
char *ptr = line;
- int sz = strlen(line);
+ int sz = (int)strlen(line);
while (script_hasdata(st, idx))
{
char *tmp = strstr(ptr, "@@");
if (!tmp)
break;
const char *item = script_getstr(st, idx);
- int len = strlen(item);
+ int len = (int)strlen(item);
if (len > 50)
break;
sz += len - 2;