Skip to content

Commit 65b2755

Browse files
committed
Extract common check and run it first
1 parent 02e00a9 commit 65b2755

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/checkio.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2050,8 +2050,10 @@ void CheckIO::argumentType(std::ostream& os, const ArgumentInfo * argInfo)
20502050
if (argInfo->address)
20512051
os << " *";
20522052
} else {
2053-
if ((type->originalName() == "__int64" || type->originalName() == "__int32") && type->isUnsigned())
2054-
os << "unsigned ";
2053+
if (type->isUnsigned()) {
2054+
if (type->originalName() == "__int64" || type->originalName() == "__int32")
2055+
os << "unsigned ";
2056+
}
20552057
os << type->originalName();
20562058
if (type->strAt(1) == "*" || argInfo->address)
20572059
os << " *";

0 commit comments

Comments
 (0)