diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-03-10 10:33:35 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2019-03-10 10:33:35 (GMT) |
commit | 8f614d75fe9b1fdcb91384a1296c76514a06d70b (patch) | |
tree | d8c5a7fbdc7e43bcc5106c3206cf852828dd8713 /qtools/qcstring.cpp | |
parent | 208c689e4c13cc065045a6f6b1ff685eda5a3cd6 (diff) | |
download | Doxygen-8f614d75fe9b1fdcb91384a1296c76514a06d70b.zip Doxygen-8f614d75fe9b1fdcb91384a1296c76514a06d70b.tar.gz Doxygen-8f614d75fe9b1fdcb91384a1296c76514a06d70b.tar.bz2 |
Fixed a few compiler warnings on win32
Diffstat (limited to 'qtools/qcstring.cpp')
-rw-r--r-- | qtools/qcstring.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qtools/qcstring.cpp b/qtools/qcstring.cpp index 77461b2..6a14d66 100644 --- a/qtools/qcstring.cpp +++ b/qtools/qcstring.cpp @@ -343,7 +343,7 @@ QCString QCString::simplifyWhiteSpace() const if ( to > first && *(to-1) == 0x20 ) to--; *to = '\0'; - result.resize( (int)((long)to - (long)result.data()) + 1 ); + result.resize( (int)(to - result.data()) + 1 ); return result; } @@ -571,7 +571,7 @@ int qstricmp( const char *str1, const char *str2 ) int res; uchar c; if ( !s1 || !s2 ) - return s1 == s2 ? 0 : (int)((long)s2 - (long)s1); + return s1 == s2 ? 0 : (int)(s2 - s1); for ( ; !(res = (c=tolower(*s1)) - tolower(*s2)); s1++, s2++ ) if ( !c ) // strings are equal break; @@ -585,7 +585,7 @@ int qstrnicmp( const char *str1, const char *str2, uint len ) int res; uchar c; if ( !s1 || !s2 ) - return (int)((long)s2 - (long)s1); + return (int)(s2 - s1); for ( ; len--; s1++, s2++ ) { if ( (res = (c=tolower(*s1)) - tolower(*s2)) ) return res; |