From 6fdb73ba62e1b184f6ea8c56d52a7c6316a3f187 Mon Sep 17 00:00:00 2001 From: Toki Date: Sat, 1 Feb 2025 18:55:30 +0900 Subject: [PATCH] =?UTF-8?q?intMax,=20Min=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/utils/system_util.dart | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/utils/system_util.dart b/lib/utils/system_util.dart index 666191f..e587a35 100644 --- a/lib/utils/system_util.dart +++ b/lib/utils/system_util.dart @@ -39,13 +39,8 @@ void initialize(String name, String appID) { isWeb = false; // 예외 발생 시 네이티브 환경 } - if (isWeb) { - intMax = 9007199254740991; - intMin = -9007199254740991; - } else { - intMax = 9223372036854775807; - intMin = -9223372036854775807; - } + intMax = (1 << ((-1).bitLength - 1)) - 1; + intMin = -intMax; } Map?> envArguments(List arguments) {