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

little optimalization

This commit is contained in:
arnobrinkman 2005-01-27 15:02:17 +00:00
parent 574525c58c
commit 6e12991438
2 changed files with 8 additions and 10 deletions

View File

@ -3286,19 +3286,17 @@ static dsc* concatenate(thread_db* tdbb, jrd_nod* node, impure_value* impure)
UCHAR* p = impure->vlu_desc.dsc_address;
if (length1) {
do {
*p++ = *address1++;
} while (--length1);
memcpy(p, address1, length1);
p += length1;
}
if (length2) {
do {
*p++ = *address2++;
} while (--length2);
memcpy(p, address2, length2);
}
if (temp3)
if (temp3) {
delete temp3;
}
}
return &impure->vlu_desc;
}

View File

@ -399,9 +399,9 @@ void IDX_create_index(
if (l > 0) {
const UCHAR* q = key.key_data;
do {
*p++ = *q++;
} while (--l);
memcpy(p, q, l);
p += l;
q += l;
}
if ( (l = key_length - key.key_length) ) {
do {