fixed getReturn to not return NULL
This commit is contained in:
@ -528,13 +528,13 @@ TableNode *getReturn(TableNode *definition) {
|
||||
printdebug(
|
||||
"passed a NULL entry to getReturn "
|
||||
"function. Invalid.");
|
||||
return NULL;
|
||||
return undefined;
|
||||
}
|
||||
if (definition == undefined) {
|
||||
printdebug(
|
||||
"passed an undefined entry to getReturn "
|
||||
"function. Invalid.");
|
||||
return NULL;
|
||||
return undefined;
|
||||
}
|
||||
if (strcmp(getType(definition), "primitive function type") != 0) {
|
||||
printdebug(
|
||||
|
Reference in New Issue
Block a user