mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 19:23:03 +01:00
Misc.
This commit is contained in:
parent
90f3097d26
commit
a2cd97355b
@ -690,7 +690,7 @@ void SimilarToMatcher<StrConverter, CharType>::Evaluator::parsePrimary(int* flag
|
||||
if (patternPos >= patternEnd)
|
||||
status_exception::raise(isc_invalid_similar_pattern, 0);
|
||||
|
||||
SLONG len = patternPos++ - start;
|
||||
const SLONG len = patternPos++ - start;
|
||||
|
||||
typedef const UCHAR* (TextType::*GetCanonicalFunc)(int*) const;
|
||||
|
||||
@ -1043,8 +1043,7 @@ bool SimilarToMatcher<StrConverter, CharType>::Evaluator::match(int limit, int s
|
||||
case opAnyOf:
|
||||
if (bufferPos >= bufferEnd)
|
||||
return false;
|
||||
else
|
||||
{
|
||||
|
||||
if (notInSet(bufferPos, 1, node->str, node->len) != 0)
|
||||
{
|
||||
const UCHAR* end = node->str2 + node->len2;
|
||||
@ -1096,7 +1095,6 @@ bool SimilarToMatcher<StrConverter, CharType>::Evaluator::match(int limit, int s
|
||||
if (p < end)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
++bufferPos;
|
||||
break;
|
||||
|
@ -508,7 +508,7 @@ void SRVR_multi_thread( rem_port* main_port, USHORT flags)
|
||||
}
|
||||
if (dataSize)
|
||||
{
|
||||
SSHORT asyncSize = port->asyncReceive(&asyncPacket, buffer, dataSize);
|
||||
const SSHORT asyncSize = port->asyncReceive(&asyncPacket, buffer, dataSize);
|
||||
if (asyncSize == dataSize)
|
||||
{
|
||||
port = NULL;
|
||||
@ -5224,7 +5224,8 @@ SSHORT rem_port::asyncReceive(PACKET* asyncPacket, const UCHAR* buffer, SSHORT d
|
||||
port_async_receive->receive(asyncPacket);
|
||||
}
|
||||
|
||||
SSHORT asyncSize = dataSize - port_async_receive->port_receive.x_handy;
|
||||
const SSHORT asyncSize = dataSize - port_async_receive->port_receive.x_handy;
|
||||
fb_assert(asyncSize >= 0);
|
||||
|
||||
switch(asyncPacket->p_operation)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user