From 7cd351d1cd5038bc2e6c47b708fe00229eff7608 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Fri, 13 May 2022 18:12:31 +0200 Subject: [PATCH] Misc This applies only to Debug builds, as Release ones don't use checked arithmetic anyway --- ArchiSteamFarm/Steam/Integration/ArchiHandler.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ArchiSteamFarm/Steam/Integration/ArchiHandler.cs b/ArchiSteamFarm/Steam/Integration/ArchiHandler.cs index d7ccb6db0..dcebb35f2 100644 --- a/ArchiSteamFarm/Steam/Integration/ArchiHandler.cs +++ b/ArchiSteamFarm/Steam/Integration/ArchiHandler.cs @@ -509,7 +509,8 @@ public sealed class ArchiHandler : ClientMsgHandler { ClientMsgProtobuf request = new(EMsg.ClientGamesPlayedWithDataBlob) { Body = { - client_os_type = (uint) Bot.OSType + // Underflow here is to be expected, this is Steam's logic + client_os_type = unchecked((uint) Bot.OSType) } };