diff options
author | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2009-03-31 05:16:22 +0000 |
---|---|---|
committer | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2009-03-31 05:16:22 +0000 |
commit | f8840b16acaa5cb11a4440ea62a96731a24f4d6e (patch) | |
tree | f0e38ae1106bf095e1129231693ef4b79c94de3a /yapp/str_utils.cpp | |
parent | 8f7401d0d32b864e7c1efbe696fb60d010f001bb (diff) |
x64 port
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@448 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'yapp/str_utils.cpp')
-rw-r--r-- | yapp/str_utils.cpp | 4 |
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;
|