Skip to content

Commit 124e5f3

Browse files
committed
Type of the key of the result collection changed from "uint" to "short".
1 parent c00d785 commit 124e5f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/FirebirdSql.Data.FirebirdClient/Common/Extensions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ public static string ToHexString(this byte[] b)
5353
return BitConverter.ToString(b).Replace("-", string.Empty);
5454
}
5555

56-
public static IDictionary<uint, ulong> GetTableStatistic(this byte[] b, int aLength)
56+
public static IDictionary<short, ulong> GetTableStatistic(this byte[] b, int aLength)
5757
{
5858
int capacity = aLength > 3 ?
5959
(aLength - 3) / 6 + 1 :
6060
0;
61-
var tableStatistic = new Dictionary<uint, ulong>(capacity);
61+
var tableStatistic = new Dictionary<short, ulong>(capacity);
6262
for (var i = 3; i < aLength; i += 6)
6363
{
64-
var tableId = (uint)IscHelper.VaxInteger(b, i, 2);
64+
var tableId = (short)IscHelper.VaxInteger(b, i, 2);
6565
var count = (ulong)IscHelper.VaxInteger(b, i + 2, 4);
6666
tableStatistic.Add(tableId, count);
6767
}

0 commit comments

Comments
 (0)