summaryrefslogtreecommitdiffstats
path: root/src/Lang/C/CParser.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/Lang/C/CParser.ts')
-rw-r--r--src/Lang/C/CParser.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Lang/C/CParser.ts b/src/Lang/C/CParser.ts
index 6d3d85b..859dc6b 100644
--- a/src/Lang/C/CParser.ts
+++ b/src/Lang/C/CParser.ts
@@ -297,7 +297,7 @@ export default class CParser implements ICodeParser {
const func = this.GetArgument(tree);
// check if it is a constructor or descructor since these have no name..
// and reverse the assignment of type and name.
- if (func.name === undefined) {
+ if (func.name === null) {
if (func.type.nodes.length !== 1) {
throw new Error("Too many symbols found for constructor/descructor.");
} else if (func.type.nodes[0] instanceof CParseTree) {