secureswitools/swianalysistoolkit/source/common/streamreader.cpp
changeset 53 ae54820ef82c
parent 0 ba25891c3a9e
child 66 8b7f4e561641
--- a/secureswitools/swianalysistoolkit/source/common/streamreader.cpp	Wed Jun 23 18:20:02 2010 +0300
+++ b/secureswitools/swianalysistoolkit/source/common/streamreader.cpp	Tue Jul 06 14:23:31 2010 +0300
@@ -225,7 +225,7 @@
 	// This memory will be freed by the caller of this function
 	char *ptrUtf8 = new char[targetLength + 1];
 	
-	UTF16* sourceStart = static_cast<UTF16*>(aSource);
+	UTF16* sourceStart = reinterpret_cast<UTF16*>(aSource);
 	UTF16* sourceEnd = sourceStart + aSrcLength; 
 	UTF8* targetStart = reinterpret_cast<UTF8*>(ptrUtf8);
 	UTF8* targetEnd;