8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 14:03:02 +01:00
This commit is contained in:
asfernandes 2009-06-04 15:17:18 +00:00
parent 2632bb6bb6
commit b754e0fd59

View File

@ -262,7 +262,7 @@ PerformanceInfo* RuntimeStatistics::computeDifference(Database* dbb,
// Point TraceCounts to counts array from baseline object
if (!all_zeros)
{
jrd_rel* relation = new_cnts->rlc_relation_id < dbb->dbb_relations->count() ?
jrd_rel* relation = size_t(new_cnts->rlc_relation_id) < dbb->dbb_relations->count() ?
(*dbb->dbb_relations)[new_cnts->rlc_relation_id] : NULL;
TraceCounts traceCounts;
traceCounts.trc_relation_id = new_cnts->rlc_relation_id;
@ -276,7 +276,7 @@ PerformanceInfo* RuntimeStatistics::computeDifference(Database* dbb,
}
else
{
jrd_rel* relation = new_cnts->rlc_relation_id < dbb->dbb_relations->count() ?
jrd_rel* relation = size_t(new_cnts->rlc_relation_id) < dbb->dbb_relations->count() ?
(*dbb->dbb_relations)[new_cnts->rlc_relation_id] : NULL;
// Point TraceCounts to counts array from object with updated counters