mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 07:38:21 +00:00
Fix bug in type conciliation function
Casting wasn't enough, it needed to call to_uint().
This commit is contained in:
parent
6dfbd804d0
commit
138d042b2e
1 changed files with 1 additions and 1 deletions
|
@ -244,7 +244,7 @@ class Evaluator(object):
|
|||
"""Perform usual arithmetic conversions on two operands."""
|
||||
assert type(op1) in (sint, uint) and type(op2) in (sint, uint)
|
||||
if type(op1) != type(op2):
|
||||
return uint(op1), uint(op2)
|
||||
return self.to_uint(op1), self.to_uint(op2)
|
||||
return op1, op2
|
||||
|
||||
def primary_expression(self, evaluating):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue