[vm] Fix implementation of IsAtLeastIOS<X>
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 <vegorov@google.com> Reviewed-by: Martin Kustermann <kustermann@google.com>
This commit is contained in:
committed by
Commit Queue
parent
da92cb4cb2
commit
20dc41763a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user