summaryrefslogtreecommitdiff
path: root/store/source/stortree.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'store/source/stortree.hxx')
-rw-r--r--store/source/stortree.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/store/source/stortree.hxx b/store/source/stortree.hxx
index c3c5b6f8f2db..7c865637068d 100644
--- a/store/source/stortree.hxx
+++ b/store/source/stortree.hxx
@@ -128,7 +128,7 @@ struct OStoreBTreeNodeData : public store::OStorePageData
*/
sal_uInt16 capacity() const
{
- return (store::ntohs(base::m_aDescr.m_nSize) - self::thePageSize);
+ return static_cast<sal_uInt16>(store::ntohs(base::m_aDescr.m_nSize) - self::thePageSize);
}
/** capacityCount (must be even).
@@ -142,7 +142,7 @@ struct OStoreBTreeNodeData : public store::OStorePageData
*/
sal_uInt16 usage() const
{
- return (store::ntohs(base::m_aDescr.m_nUsed) - self::thePageSize);
+ return static_cast<sal_uInt16>(store::ntohs(base::m_aDescr.m_nUsed) - self::thePageSize);
}
/** usageCount.