diff options
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/bastyp/bitset.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/bastyp/bitset.cxx b/sfx2/source/bastyp/bitset.cxx index 8a49a02661c9..f13461c32de1 100644 --- a/sfx2/source/bastyp/bitset.cxx +++ b/sfx2/source/bastyp/bitset.cxx @@ -18,11 +18,11 @@ */ #include <sal/log.hxx> +#include <sal/types.h> #include <bitset.hxx> #include <string.h> -#include <limits.h> // creates the asymmetric difference with another bitset @@ -97,13 +97,13 @@ IndexBitSet::~IndexBitSet() sal_uInt16 IndexBitSet::GetFreeIndex() { - for(int i=0;i<USHRT_MAX;i++) + for(sal_uInt16 i=0;i<SAL_MAX_UINT16;i++) if(!Contains(i)) { *this|=i; return i; } - SAL_WARN( "sfx", "IndexBitSet enthaelt mehr als USHRT_MAX Eintraege"); + SAL_WARN( "sfx", "IndexBitSet enthaelt mehr als SAL_MAX_UINT16 Eintraege"); return 0; } |