CPP: Fix a bug in FormattingFunction.getDefaultCharType.

This commit is contained in:
Geoffrey White
2019-02-27 19:52:28 +00:00
parent e59b3c28e4
commit 1b71accbfe

View File

@@ -57,8 +57,12 @@ abstract class FormattingFunction extends Function {
* `char` or `wchar_t`.
*/
Type getDefaultCharType() {
result = stripTopLevelSpecifiersOnly(getParameter(getFormatParameterIndex()).getType().
getUnderlyingType().(PointerType).getBaseType())
result =
stripTopLevelSpecifiersOnly(
stripTopLevelSpecifiersOnly(
getParameter(getFormatParameterIndex()).getType().getUnderlyingType()
).(PointerType).getBaseType()
)
}
/**