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

Comment and fix for 64 bit

This commit is contained in:
asfernandes 2009-08-04 15:32:07 +00:00
parent 519afdbf7a
commit 1a34082c36

View File

@ -36,8 +36,11 @@ public:
end(buffer + maxLen),
pos(buffer)
{
// ASF: A big maxLen like MAX_ULONG could overflow the pointer size and
// points to something before start. In this case, we set the end to the
// max possible address.
if (end < start)
end = (UCHAR*) -1;
end = ((UCHAR*) 0) - 1;
}
BlrReader()