Fix an error being ignored when analyzing typedefs

This commit is contained in:
Sasha Koshka 2024-04-11 23:57:47 -04:00
parent 0a54232e29
commit b822d57757
1 changed files with 2 additions and 1 deletions

View File

@ -46,6 +46,7 @@ func (this *Tree) analyzeTypedef (
var err error
definition.Type, err = this.analyzeTypeInternal (
definition.Type, definition, false)
if err != nil { return nil, err }
// assemble constant map
definition, err = this.assembleTypedefConstantMap(definition)
@ -76,7 +77,7 @@ func (this *Tree) analyzeTypedef (
definition.Constants[index] = constant
}
return definition, err
return definition, nil
}
func (this *Tree) analyzeConstantDeclaration (