[Libreoffice-commits] core.git: Branch 'distro/suse/suse-3.6' - sw/source
LuboÅ¡ LuÅák
l.lunak at suse.cz
Fri Apr 19 04:17:14 PDT 2013
sw/source/core/txtnode/ndtxt.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 414940e7fbcbcbabd793f053a7849995fe52b8e8
Author: LuboÅ¡ LuÅák <l.lunak at suse.cz>
Date: Fri Apr 19 13:16:43 2013 +0200
there seems to be no ssize_t on windows
Change-Id: Ib234a53b50929d1f977ff2d7f83afed86514520e
diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx
index 9e88202..364deed 100644
--- a/sw/source/core/txtnode/ndtxt.cxx
+++ b/sw/source/core/txtnode/ndtxt.cxx
@@ -1723,8 +1723,8 @@ void SwTxtNode::InsertText( const XubString & rStr, const SwIndex & rIdx,
xub_StrLen aPos = rIdx.GetIndex();
xub_StrLen nLen = m_Text.Len() - aPos;
- ssize_t const nOverflow(static_cast<ssize_t>(m_Text.Len())
- + static_cast<ssize_t>(rStr.Len()) - TXTNODE_MAX);
+ long const nOverflow(static_cast<long>(m_Text.Len())
+ + static_cast<long>(rStr.Len()) - TXTNODE_MAX);
m_Text.Insert((nOverflow > 0) ? rStr.Copy(0, rStr.Len() - nOverflow) : rStr,
aPos);
assert(m_Text.Len() <= TXTNODE_MAX);
More information about the Libreoffice-commits
mailing list