From 20dc41763a090ab976733e1fd37c15079988ebd0 Mon Sep 17 00:00:00 2001 From: Vyacheslav Egorov Date: Thu, 19 Jun 2025 01:46:18 -0700 Subject: [PATCH] [vm] Fix implementation of IsAtLeastIOS It was hardcoding the wrong constant. R=kustermann@google.com TEST=manually Change-Id: Ice17fa7aed7a6c68c0c9ac31a3258aa33ede0e08 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/435780 Commit-Queue: Slava Egorov Reviewed-by: Martin Kustermann --- runtime/platform/utils_macos.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/runtime/platform/utils_macos.h b/runtime/platform/utils_macos.h index f3c496f0fde..cae3427e69d 100644 --- a/runtime/platform/utils_macos.h +++ b/runtime/platform/utils_macos.h @@ -30,10 +30,9 @@ int32_t DarwinVersion(); // Run-time OS version checks. #define DEFINE_IS_OS_FUNCS(VERSION_NAME, VALUE) \ inline bool IsAtLeastIOS##VERSION_NAME() { \ - return (internal::DarwinVersion() >= 180400); \ + return (internal::DarwinVersion() >= VALUE); \ } -DEFINE_IS_OS_FUNCS(18_4, 180400) DEFINE_IS_OS_FUNCS(26_0, 260000) #else