summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2013-04-19 13:16:43 +0200
committerLuboš Luňák <l.lunak@suse.cz>2013-04-19 13:16:43 +0200
commit414940e7fbcbcbabd793f053a7849995fe52b8e8 (patch)
treedd625c7cef4f37bef66c449ca21fe4110e3a4eb4
parentbnc#796202, fdo#60732: SwTxtNode: limit to less than STRING_LEN chars (diff)
downloadcore-414940e7fbcbcbabd793f053a7849995fe52b8e8.tar.gz
core-414940e7fbcbcbabd793f053a7849995fe52b8e8.zip
there seems to be no ssize_t on windows
Change-Id: Ib234a53b50929d1f977ff2d7f83afed86514520e
-rw-r--r--sw/source/core/txtnode/ndtxt.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx
index 9e8820215b49..364deed7cd0b 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);