-
Hi Reanimated team, I received a CodeQL security/static analysis alert in my project regarding potential numeric precision loss in: The alert suggests that there might be an implicit narrowing conversion when accumulating float values (from I wanted to check with the maintainers:
Thank you for your time and clarification! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @unstoo! Thanks for asking about that. I don't think we would bother about this. I haven't seen any complaints related to imprecise layout animation because of narrowing value conversions and sub-pixel precision doesn't seem to be needed. We also don't plan to make any major changes to the Old Architecture related code. The New Architecture implementation is rewritten in CPP and is shared between Android and iOS, so we don't plan to add any changes to this java code (except fixing bugs). Since this narrowing conversion doesn't seem to be a problem, I think that there is no point in changing this code. |
Beta Was this translation helpful? Give feedback.
Hey @unstoo!
Thanks for asking about that.
I don't think we would bother about this. I haven't seen any complaints related to imprecise layout animation because of narrowing value conversions and sub-pixel precision doesn't seem to be needed.
We also don't plan to make any major changes to the Old Architecture related code. The New Architecture implementation is rewritten in CPP and is shared between Android and iOS, so we don't plan to add any changes to this java code (except fixing bugs).
Since this narrowing conversion doesn't seem to be a problem, I think that there is no point in changing this code.