mirror of
https://github.com/libAthena/athena.git
synced 2025-12-08 21:18:02 +00:00
Branch tweak
This commit is contained in:
@@ -144,11 +144,7 @@ class ATDNAEmitVisitor : public clang::RecursiveASTVisitor<ATDNAEmitVisitor>
|
|||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else if (bType->isUnsignedInteger())
|
else if (bType->isUnsignedInteger() || bType->isSignedInteger())
|
||||||
{
|
|
||||||
return width / 8;
|
|
||||||
}
|
|
||||||
else if (bType->isSignedInteger())
|
|
||||||
{
|
{
|
||||||
return width / 8;
|
return width / 8;
|
||||||
}
|
}
|
||||||
@@ -160,15 +156,7 @@ class ATDNAEmitVisitor : public clang::RecursiveASTVisitor<ATDNAEmitVisitor>
|
|||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else if (bType->isUnsignedInteger())
|
else if (bType->isUnsignedInteger() || bType->isSignedInteger() || bType->isFloatingPoint())
|
||||||
{
|
|
||||||
return width / 8;
|
|
||||||
}
|
|
||||||
else if (bType->isSignedInteger())
|
|
||||||
{
|
|
||||||
return width / 8;
|
|
||||||
}
|
|
||||||
else if (bType->isFloatingPoint())
|
|
||||||
{
|
{
|
||||||
return width / 8;
|
return width / 8;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user