Fix for GT-2704

This commit is contained in:
caheckman 2019-03-26 16:29:44 -04:00
parent 79d8f164f8
commit 9cd01c9a08

View File

@ -261,10 +261,7 @@ public class PcodeDataTypeManager {
if (type instanceof Array) {
return buildType(type, size);
}
if (type instanceof FunctionDefinition) {
return buildType(type, size);
}
if (type.getLength() <= 0) {
if (!(type instanceof FunctionDefinition) && type.getLength() <= 0) {
return buildType(type, size);
}
StringBuilder resBuf = new StringBuilder();
@ -541,7 +538,7 @@ public class PcodeDataTypeManager {
}
resBuf.append("<type");
if ((type instanceof Pointer) || (type instanceof Array) ||
(type instanceof FunctionDefinition) || (type.getLength() <= 0)) {
(!(type instanceof FunctionDefinition) && type.getLength() <= 0)) {
SpecXmlUtils.encodeStringAttribute(resBuf, "name", "");
}
else {