summaryrefslogtreecommitdiff
path: root/plugins/Spamotron
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-05-21 19:37:58 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-05-21 19:37:58 +0000
commit1889d396b05de1fb84902c61a2c1a80d86d54b04 (patch)
tree67ef9daed3a8f972e7ea7219f067fb6e7eb9e847 /plugins/Spamotron
parentdb0dc1634ea23ed3ce22d442b75a0c93fc73f2f8 (diff)
warning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@13738 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Spamotron')
-rw-r--r--plugins/Spamotron/src/utils.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/Spamotron/src/utils.cpp b/plugins/Spamotron/src/utils.cpp
index 345f3316ce..22ca8df42b 100644
--- a/plugins/Spamotron/src/utils.cpp
+++ b/plugins/Spamotron/src/utils.cpp
@@ -42,7 +42,7 @@ BOOL _isregex(TCHAR* strSearch)
regex = mir_tstrdup(strSearch);
if (regex == NULL)
goto err_out;
- rc = pcre16_exec(re, NULL, regex, _tcslen(regex), 0, 0, ovector, 9);
+ rc = pcre16_exec(re, NULL, regex, (int)_tcslen(regex), 0, 0, ovector, 9);
if (rc == 3)
ret = TRUE;
mir_free(regex);
@@ -73,7 +73,7 @@ BOOL _isvalidregex(TCHAR* strSearch)
pcre16_free(re);
return FALSE;
}
- rc = pcre16_exec(re, NULL, regex, _tcslen(regex), 0, 0, ovector, 9);
+ rc = pcre16_exec(re, NULL, regex, (int)_tcslen(regex), 0, 0, ovector, 9);
pcre16_free(re);
if (rc != 3)
goto err_out;
@@ -121,7 +121,7 @@ BOOL _regmatch(TCHAR* str, TCHAR* strSearch)
pcre16_free(re);
return FALSE;
}
- rc = pcre16_exec(re, NULL, regex, _tcslen(regex), 0, 0, ovector, 9);
+ rc = pcre16_exec(re, NULL, regex, (int)_tcslen(regex), 0, 0, ovector, 9);
pcre16_free(re);
if (rc != 3)
goto err_out; // [TODO] and log some error (better check for valid regex on options save)
@@ -143,7 +143,7 @@ BOOL _regmatch(TCHAR* str, TCHAR* strSearch)
re = pcre16_compile(regexp, opts, &error, &erroroffs, NULL);
if (re == NULL)
goto err_out;
- rc = pcre16_exec(re, NULL, data, _tcslen(data), 0, 0, NULL, 0);
+ rc = pcre16_exec(re, NULL, data, (int)_tcslen(data), 0, 0, NULL, 0);
pcre16_free(re);
if (rc >= 0)
ret = TRUE;
@@ -175,7 +175,7 @@ int get_response_id(const TCHAR* strvar)
pcre16_free(re);
return 0;
}
- rc = pcre16_exec(re, NULL, _strvar, _tcslen(_strvar), 0, 0, ovector, 9);
+ rc = pcre16_exec(re, NULL, _strvar, (int)_tcslen(_strvar), 0, 0, ovector, 9);
pcre16_free(re);
if (rc < 0) {
ret = -1;
@@ -390,7 +390,7 @@ TCHAR* ReplaceVarsNum(TCHAR *dst, unsigned int len, int num)
mir_free(dstcopy);
goto err_out;
}
- rc = pcre16_exec(re, NULL, _str, _tcslen(_str), 0, 0, ovector, 9);
+ rc = pcre16_exec(re, NULL, _str, (int)_tcslen(_str), 0, 0, ovector, 9);
if (rc < 0) {
ret = -1;
} else if (rc == 3) {