diff options
author | Vladislav Vaintroub <wlad@montyprogram.com> | 2011-05-28 16:57:58 +0200 |
---|---|---|
committer | Vladislav Vaintroub <wlad@montyprogram.com> | 2011-05-28 16:57:58 +0200 |
commit | b519f2b626ebd1f3243a21dc883cefa6a26460f9 (patch) | |
tree | faad721ece99fc071000e695861e37d45acda0e5 /client | |
parent | 152dfe58678af35769ca3cd66db592d129b4c08b (diff) | |
download | mariadb-git-b519f2b626ebd1f3243a21dc883cefa6a26460f9.tar.gz |
Fix compile errors and warnings and test errors introduced by microseconds push.
Also, change windows timespec definition to be Unix-ish - simplifies handling a lot.
Diffstat (limited to 'client')
-rw-r--r-- | client/sql_string.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/sql_string.cc b/client/sql_string.cc index aa5d64a01d8..315c8d786db 100644 --- a/client/sql_string.cc +++ b/client/sql_string.cc @@ -542,8 +542,8 @@ uint32 String::numchars() int String::charpos(longlong i,uint32 offset) { if (i <= 0) - return i; - return str_charset->cset->charpos(str_charset,Ptr+offset,Ptr+str_length,i); + return (int)i; + return (int)str_charset->cset->charpos(str_charset,Ptr+offset,Ptr+str_length,(size_t)i); } int String::strstr(const String &s,uint32 offset) |