diff --git a/sw/source/core/doc/doccomp.cxx b/sw/source/core/doc/doccomp.cxx index f9bf7bd753fe..bbf9bb8c5663 100644 --- a/sw/source/core/doc/doccomp.cxx +++ b/sw/source/core/doc/doccomp.cxx @@ -47,6 +47,7 @@ #include #include +#include #include #include #include @@ -937,15 +938,15 @@ namespace { void lcl_ShiftBoundariesOneway( CompareData* const pData, CompareData const * const pOtherData) { - sal_uLong i = 0; - sal_uLong j = 0; - sal_uLong i_end = pData->GetLineCount(); - sal_uLong preceding = ULONG_MAX; - sal_uLong other_preceding = ULONG_MAX; + size_t i = 0; + size_t j = 0; + size_t i_end = pData->GetLineCount(); + size_t preceding = SIZE_MAX; + size_t other_preceding = SIZE_MAX; while (true) { - sal_uLong start, other_start; + size_t start, other_start; /* Scan forwards to find beginning of another run of changes. Also keep track of the corresponding point in the other file. */