diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-04-19 13:16:43 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-04-19 13:16:43 +0200 |
commit | 414940e7fbcbcbabd793f053a7849995fe52b8e8 (patch) | |
tree | dd625c7cef4f37bef66c449ca21fe4110e3a4eb4 | |
parent | 0c153a22254bf7d83041192037ee7268c40f06f1 (diff) |
there seems to be no ssize_t on windows
Change-Id: Ib234a53b50929d1f977ff2d7f83afed86514520e
-rw-r--r-- | sw/source/core/txtnode/ndtxt.cxx | 4 |
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); |