mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 18:24:23 +00:00
Use 'unsigned char' to get this past gcc error message:
error: invalid conversion from 'unsigned char' to '{anonymous}::Sequence' git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196004 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -432,7 +432,7 @@ namespace {
|
|||||||
bool Partial;
|
bool Partial;
|
||||||
|
|
||||||
/// The current position in the sequence.
|
/// The current position in the sequence.
|
||||||
Sequence Seq : 8;
|
unsigned char Seq : 8;
|
||||||
|
|
||||||
/// Unidirectional information about the current sequence.
|
/// Unidirectional information about the current sequence.
|
||||||
RRInfo RRI;
|
RRInfo RRI;
|
||||||
@ -498,7 +498,7 @@ namespace {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Sequence GetSeq() const {
|
Sequence GetSeq() const {
|
||||||
return Seq;
|
return static_cast<Sequence>(Seq);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ClearSequenceProgress() {
|
void ClearSequenceProgress() {
|
||||||
@ -538,7 +538,8 @@ namespace {
|
|||||||
|
|
||||||
void
|
void
|
||||||
PtrState::Merge(const PtrState &Other, bool TopDown) {
|
PtrState::Merge(const PtrState &Other, bool TopDown) {
|
||||||
Seq = MergeSeqs(Seq, Other.Seq, TopDown);
|
Seq = MergeSeqs(static_cast<Sequence>(Seq), static_cast<Sequence>(Other.Seq),
|
||||||
|
TopDown);
|
||||||
KnownPositiveRefCount &= Other.KnownPositiveRefCount;
|
KnownPositiveRefCount &= Other.KnownPositiveRefCount;
|
||||||
|
|
||||||
// If we're not in a sequence (anymore), drop all associated state.
|
// If we're not in a sequence (anymore), drop all associated state.
|
||||||
|
Reference in New Issue
Block a user