8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 12:43:03 +01:00

Reduce number of warnings for 64-bit targets.

This commit is contained in:
dimitr 2008-05-10 16:49:39 +00:00
parent 15fd8c4252
commit 9a6c0accf6
3 changed files with 6 additions and 8 deletions

View File

@ -350,7 +350,7 @@ bool SimilarToMatcher<StrConverter, CharType>::Evaluator::getResult()
template <typename StrConverter, typename CharType> template <typename StrConverter, typename CharType>
bool SimilarToMatcher<StrConverter, CharType>::Evaluator::processNextChunk(const UCHAR* data, SLONG dataLen) bool SimilarToMatcher<StrConverter, CharType>::Evaluator::processNextChunk(const UCHAR* data, SLONG dataLen)
{ {
ULONG pos = buffer.getCount(); const size_t pos = buffer.getCount();
memcpy(buffer.getBuffer(pos + dataLen) + pos, data, dataLen); memcpy(buffer.getBuffer(pos + dataLen) + pos, data, dataLen);
return true; return true;
} }

View File

@ -468,9 +468,8 @@ public:
return FB_NEW(p) vec_base<T, TYPE>(p, base); return FB_NEW(p) vec_base<T, TYPE>(p, base);
} }
*/ */
// CVC: This should be size_t instead of ULONG for maximum portability. size_t count() const { return v.getCount(); }
ULONG count() const { return v.getCount(); }
T& operator[](size_t index) { return v[index]; } T& operator[](size_t index) { return v[index]; }
const T& operator[](size_t index) const { return v[index]; } const T& operator[](size_t index) const { return v[index]; }
@ -479,10 +478,9 @@ public:
const_iterator begin() const { return v.begin(); } const_iterator begin() const { return v.begin(); }
const_iterator end() const { return v.end(); } const_iterator end() const { return v.end(); }
void clear() { v.clear(); } void clear() { v.clear(); }
//void prepend(int n) { v.insert(v.begin(), n); }
// T* memPtr() { return &*(v.begin()); } // T* memPtr() { return &*(v.begin()); }
T* memPtr() { return &v[0]; } T* memPtr() { return &v[0]; }

View File

@ -126,7 +126,7 @@ public:
~PageManager() ~PageManager()
{ {
for (int i = pageSpaces.getCount() - 1; i >= 0; --i) for (size_t i = pageSpaces.getCount() - 1; i >= 0; --i)
{ {
PageSpace* pageSpace = pageSpaces[i]; PageSpace* pageSpace = pageSpaces[i];
pageSpaces.remove(i); pageSpaces.remove(i);