mirror of https://github.com/libAthena/athena.git
Branch tweak
This commit is contained in:
parent
8221d6e25a
commit
7f5abb6849
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue