1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-04-20 00:43:36 +03:00

Use long instead of int

Signed-off-by: Macintosh II <mctaylxrs@outlook.com>
This commit is contained in:
Macintxsh 2023-10-04 15:19:55 +03:00
parent 7c0277bf0b
commit a70297e0f8
Signed by: mctaylors
GPG key ID: 361D326747B61E65

View file

@ -266,7 +266,7 @@ public class ToolsCommandGroup : CommandGroup
private async Task<Result> SendRandomNumberAsync(long first, long? secondNullable, private async Task<Result> SendRandomNumberAsync(long first, long? secondNullable,
IUser user, CancellationToken ct) IUser user, CancellationToken ct)
{ {
const int secondDefault = 0; const long secondDefault = 0;
var second = secondNullable ?? secondDefault; var second = secondNullable ?? secondDefault;
var min = Math.Min(first, second); var min = Math.Min(first, second);