mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 21:01:20 +00:00
[gardening] Fix MSVC build after a52f2b9617
.
Without this, compiling with MSVC fails with the error: ``` error C2397: conversion from 'int' to 'uint8_t' requires a narrowing conversion ``` TEST=vm-msvc-windows builds Cq-Include-Trybots: luci.dart.try:vm-msvc-windows-try Change-Id: I157b8ac9f6f6aaaf31b71d2c0a5f5469d6dc21ad Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/312262 Auto-Submit: Tess Strickland <sstrickl@google.com> Reviewed-by: Martin Kustermann <kustermann@google.com> Commit-Queue: Tess Strickland <sstrickl@google.com> Commit-Queue: Martin Kustermann <kustermann@google.com>
This commit is contained in:
parent
7cc005ea1a
commit
4141158e2b
|
@ -3087,7 +3087,7 @@ class Function : public Object {
|
||||||
uint8_t depth = UntaggedClosureData::kNoAwaiterLinkDepth;
|
uint8_t depth = UntaggedClosureData::kNoAwaiterLinkDepth;
|
||||||
// Context index at which the `@pragma('vm:awaiter-link')` variable
|
// Context index at which the `@pragma('vm:awaiter-link')` variable
|
||||||
// is located.
|
// is located.
|
||||||
uint8_t index = -1;
|
uint8_t index = static_cast<uint8_t>(-1);
|
||||||
};
|
};
|
||||||
|
|
||||||
AwaiterLink awaiter_link() const;
|
AwaiterLink awaiter_link() const;
|
||||||
|
|
Loading…
Reference in a new issue