openoffice-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h..@apache.org
Subject svn commit: r1482736 - /openoffice/trunk/main/sal/inc/rtl/string.hxx
Date Wed, 15 May 2013 09:22:51 GMT
Author: hdu
Date: Wed May 15 09:22:51 2013
New Revision: 1482736

URL: http://svn.apache.org/r1482736
Log:
#i122208# avoid signedness warnings in signed-char build environments

Modified:
    openoffice/trunk/main/sal/inc/rtl/string.hxx

Modified: openoffice/trunk/main/sal/inc/rtl/string.hxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sal/inc/rtl/string.hxx?rev=1482736&r1=1482735&r2=1482736&view=diff
==============================================================================
--- openoffice/trunk/main/sal/inc/rtl/string.hxx (original)
+++ openoffice/trunk/main/sal/inc/rtl/string.hxx Wed May 15 09:22:51 2013
@@ -947,7 +947,7 @@ struct CStringHash
 	size_t operator()( const char* p) const {
 		size_t n = 0;
 		while( *p)
-			n += 4*n + *(p++);
+			n += 4*n + *static_cast<unsigned char*>(p++);
 		return n;
 	}
 };



Mime
View raw message