Fix some bugs
This commit is contained in:
parent
2034c6c55f
commit
2223b4a6a5
@ -118,7 +118,15 @@ namespace AST {
|
|||||||
if (
|
if (
|
||||||
ty->m_ty == types::FundamentalTypeKind::Bool
|
ty->m_ty == types::FundamentalTypeKind::Bool
|
||||||
|| ty->m_ty == types::FundamentalTypeKind::Char
|
|| ty->m_ty == types::FundamentalTypeKind::Char
|
||||||
|
|| ty->m_ty == types::FundamentalTypeKind::UChar
|
||||||
|
|| ty->m_ty == types::FundamentalTypeKind::ShortInt
|
||||||
|
|| ty->m_ty == types::FundamentalTypeKind::UShortInt
|
||||||
|| ty->m_ty == types::FundamentalTypeKind::Int
|
|| ty->m_ty == types::FundamentalTypeKind::Int
|
||||||
|
|| ty->m_ty == types::FundamentalTypeKind::UInt
|
||||||
|
|| ty->m_ty == types::FundamentalTypeKind::LongInt
|
||||||
|
|| ty->m_ty == types::FundamentalTypeKind::ULongInt
|
||||||
|
|| ty->m_ty == types::FundamentalTypeKind::LongLongInt
|
||||||
|
|| ty->m_ty == types::FundamentalTypeKind::ULongLongInt
|
||||||
) {
|
) {
|
||||||
this->m_ty = *expected_ty;
|
this->m_ty = *expected_ty;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user