mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Fix bug where the assigned type was not checked in declarations.
This commit is contained in:
parent
9cf18ade60
commit
0d81f132ab
1 changed files with 1 additions and 1 deletions
|
@ -1333,7 +1333,7 @@ class parser(object):
|
|||
decl = {'nt':'DECL','t':typ, 'name':name, 'scope':self.scopeindex}
|
||||
if self.tok[0] == '=':
|
||||
self.NextToken()
|
||||
decl['ch'] = [self.Parse_expression()]
|
||||
decl['ch'] = [self.autocastcheck(self.Parse_expression(), typ)]
|
||||
self.expect(';')
|
||||
self.NextToken()
|
||||
self.AddSymbol('v', self.scopeindex, name, Type=typ)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue