Skip to content

Commit 20dc417

Browse files
mralephCommit Queue
authored andcommitted
[vm] Fix implementation of IsAtLeastIOS<X>
It was hardcoding the wrong constant. [email protected] TEST=manually Change-Id: Ice17fa7aed7a6c68c0c9ac31a3258aa33ede0e08 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/435780 Commit-Queue: Slava Egorov <[email protected]> Reviewed-by: Martin Kustermann <[email protected]>
1 parent da92cb4 commit 20dc417

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

runtime/platform/utils_macos.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@ int32_t DarwinVersion();
3030
// Run-time OS version checks.
3131
#define DEFINE_IS_OS_FUNCS(VERSION_NAME, VALUE) \
3232
inline bool IsAtLeastIOS##VERSION_NAME() { \
33-
return (internal::DarwinVersion() >= 180400); \
33+
return (internal::DarwinVersion() >= VALUE); \
3434
}
3535

36-
DEFINE_IS_OS_FUNCS(18_4, 180400)
3736
DEFINE_IS_OS_FUNCS(26_0, 260000)
3837

3938
#else

0 commit comments

Comments
 (0)