summaryrefslogtreecommitdiff
path: root/yapp/str_utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'yapp/str_utils.cpp')
-rw-r--r--yapp/str_utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/yapp/str_utils.cpp b/yapp/str_utils.cpp
index d9e3575..c2636ac 100644
--- a/yapp/str_utils.cpp
+++ b/yapp/str_utils.cpp
@@ -203,7 +203,7 @@ char *t2u(const TCHAR *ts) {
}
void trimW(wchar_t *str) {
- int len = wcslen(str), pos;
+ int len = (int)wcslen(str), pos;
// trim whitespace (e.g. from OTR detection)
for(pos = len - 1; pos >= 0; pos--) {
if(str[pos] == L' ' || str[pos] == L'\t' || str[pos] == L'\r' || str[pos] == L'\n') str[pos] = 0;
@@ -216,7 +216,7 @@ void trimW(wchar_t *str) {
}
void trimA(char *str) {
- int len = strlen(str), pos;
+ int len = (int)strlen(str), pos;
// trim whitespace (e.g. from OTR detection)
for(pos = len - 1; pos >= 0; pos--) {
if(str[pos] == ' ' || str[pos] == '\t' || str[pos] == '\r' || str[pos] == '\n') str[pos] = 0;