diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-03-06 09:37:35 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-03-06 11:26:35 +0000 |
commit | 78719066cb546c7dc74e87488b9b7a695606cf7c (patch) | |
tree | 913e60c6a46758fa25a768a57cd17d29d2c85e62 /sw | |
parent | a7f82767e0fed810df3f6300a09507dc00cd87f9 (diff) |
wrong types used here, breaks 64bit bigendian
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/core/Test-BigPtrArray.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/qa/core/Test-BigPtrArray.cxx b/sw/qa/core/Test-BigPtrArray.cxx index 7953dc30287b..d9be7a284504 100644 --- a/sw/qa/core/Test-BigPtrArray.cxx +++ b/sw/qa/core/Test-BigPtrArray.cxx @@ -82,7 +82,7 @@ namespace /* private */ sal_Bool AddToCount(const ElementPtr& rElem, void* pArgs) { BigPtrEntryMock* const pbem = static_cast<BigPtrEntryMock* const>(rElem); - pbem->setCount(pbem->getCount() + *((int*)pArgs)); + pbem->setCount(pbem->getCount() + *((sal_uLong*)pArgs)); return true; } @@ -655,7 +655,7 @@ public: fillBigPtrArray(bparr, NUM_ENTRIES); dumpBigPtrArray(bparr); - int addCount = 1; + sal_uLong addCount = 1; bparr.ForEach(AddToCount, &addCount); for (sal_uLong i = 0; i < NUM_ENTRIES; i++) @@ -715,7 +715,7 @@ public: fillBigPtrArray(bparr, NUM_ENTRIES); dumpBigPtrArray(bparr); - int addCount = 1; + sal_uLong addCount = 1; bparr.ForEach(NUM_ENTRIES / 2, NUM_ENTRIES, AddToCount, &addCount); sal_uLong i = 0; |