mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Return a float when typecasting returns zero (fixes inconsistent type)
This commit is contained in:
parent
aee638e900
commit
57cacf29bb
1 changed files with 1 additions and 1 deletions
|
@ -351,7 +351,7 @@ def InternalTypecast(val, out, InList, f32):
|
|||
if not lslcommon.LSO and abs(ret) < 1.1754943508222875e-38:
|
||||
# Mono doesn't return denormals when using (float)"val"
|
||||
# (but it returns them when using (vector)"<val,...>")
|
||||
ret = 0
|
||||
ret = 0.0
|
||||
return ret
|
||||
if out == int:
|
||||
match = int_re.match(val)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue