summaryrefslogtreecommitdiffstats
path: root/qtools/qutfcodec.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2012-09-30 13:51:29 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2012-09-30 13:51:29 (GMT)
commitceb4115c7b941039411e1793e01239610ff112a2 (patch)
treed18c06222e0f84d6077b586e5633053a8bc09da8 /qtools/qutfcodec.cpp
parentf6d511e52eb55c5d5b980c4d226f2ea80b396095 (diff)
downloadDoxygen-ceb4115c7b941039411e1793e01239610ff112a2.zip
Doxygen-ceb4115c7b941039411e1793e01239610ff112a2.tar.gz
Doxygen-ceb4115c7b941039411e1793e01239610ff112a2.tar.bz2
Release-1.8.2-20120930
Diffstat (limited to 'qtools/qutfcodec.cpp')
-rw-r--r--qtools/qutfcodec.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/qtools/qutfcodec.cpp b/qtools/qutfcodec.cpp
index b0caa76..c7094ad 100644
--- a/qtools/qutfcodec.cpp
+++ b/qtools/qutfcodec.cpp
@@ -65,7 +65,7 @@ QCString QUtf8Codec::fromUnicode(const QString& uc, int& len_in_out) const
*cursor++ = 0x80 | (ch.cell()&0x3f);
}
}
- len_in_out = cursor - (uchar*)rstr.data();
+ len_in_out = (int)(cursor - (uchar*)rstr.data());
rstr.truncate(len_in_out);
return rstr;
}
@@ -201,13 +201,13 @@ public:
QCString fromUnicode(const QString& uc, int& len_in_out)
{
if ( headerdone ) {
- len_in_out = uc.length()*sizeof(QChar);
+ len_in_out = uc.length()*(int)sizeof(QChar);
QCString d(len_in_out);
memcpy(d.data(),uc.unicode(),len_in_out);
return d;
} else {
headerdone = TRUE;
- len_in_out = (1+uc.length())*sizeof(QChar);
+ len_in_out = (1+uc.length())*(int)sizeof(QChar);
QCString d(len_in_out);
memcpy(d.data(),&QChar::byteOrderMark,sizeof(QChar));
memcpy(d.data()+sizeof(QChar),uc.unicode(),uc.length()*sizeof(QChar));