You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This can cause precision loss when the argument is of type Number but is a larger type or conversion from floating point to integer type is performed, e.g. Double -> Integer
Not sure if this can be easily made safer without breaking backward compability.
The text was updated successfully, but these errors were encountered:
The method
RuntimeUtils.getAsReferenceWrapper(...)
can cause precision loss:Java-Objective-C-Bridge/src/main/java/ca/weblite/objc/RuntimeUtils.java
Line 836 in 473221a
This should very likely use
Short.valueOf(String)
(see also Remove redundant primitive boxing in RuntimeUtils.getAsReferenceWrapper(...) #29)instanceof Number
call is made and afterwards the respectiveprimitiveValue()
is called, e.g.:Java-Objective-C-Bridge/src/main/java/ca/weblite/objc/RuntimeUtils.java
Line 822 in 473221a
This can cause precision loss when the argument is of type
Number
but is a larger type or conversion from floating point to integer type is performed, e.g.Double
->Integer
Not sure if this can be easily made safer without breaking backward compability.
The text was updated successfully, but these errors were encountered: