Skip to content

Commit 5daf994

Browse files
committed
IRGen: Fix apparent integer overflow in Fulfillment::State
1 parent bf55e7f commit 5daf994

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/IRGen/Fulfillment.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ struct Fulfillment {
3737
: SourceIndex(sourceIndex), State(unsigned(state)), Path(std::move(path)) {}
3838

3939
/// The source index.
40-
unsigned SourceIndex : 30;
40+
uint64_t SourceIndex : 56;
4141

4242
/// The state of the metadata at the fulfillment.
43-
unsigned State : 2;
43+
uint64_t State : 8;
4444

4545
/// The path from the source metadata.
4646
MetadataPath Path;

0 commit comments

Comments
 (0)