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
I tried to generate the binary and when I run make dist, I get this error.
/j2objc/jre_emul/build_result/Classes/java/util/Hashtable.m:497:124: error:
implicit conversion from 'int' to 'float' changes value from 2147483640 to 2147483648
[-Werror,-Wimplicit-const-int-float-conversion]
497 | threshold_ = JreFpToInt(JavaLangMath_minWithFloat_withFloat_(newCapacity * loadFactor_, JavaUtilHashtable_MAX_ARRAY_SIZE + 1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/j2objc/jre_emul/build_result/Classes/java/util/Hashtable.m:1041:119: error:
implicit conversion from 'int' to 'float' changes value from 2147483640 to 2147483648
[-Werror,-Wimplicit-const-int-float-conversion]
1041 | threshold_ = JreFpToInt(JavaLangMath_minWithFloat_withFloat_(length * loadFactor_, JavaUtilHashtable_MAX_ARRAY_SIZE + 1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
2 errors generated.
Is there anything else I need to do? How do I resolve this int to float conversion error?
I tried to generate the binary and when I run
make dist, I get this error./j2objc/jre_emul/build_result/Classes/java/util/Hashtable.m:497:124: error:
implicit conversion from 'int' to 'float' changes value from 2147483640 to 2147483648
[-Werror,-Wimplicit-const-int-float-conversion]
497 | threshold_ = JreFpToInt(JavaLangMath_minWithFloat_withFloat_(newCapacity * loadFactor_, JavaUtilHashtable_MAX_ARRAY_SIZE + 1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/j2objc/jre_emul/build_result/Classes/java/util/Hashtable.m:1041:119: error:
implicit conversion from 'int' to 'float' changes value from 2147483640 to 2147483648
[-Werror,-Wimplicit-const-int-float-conversion]
1041 | threshold_ = JreFpToInt(JavaLangMath_minWithFloat_withFloat_(length * loadFactor_, JavaUtilHashtable_MAX_ARRAY_SIZE + 1));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
2 errors generated.
Is there anything else I need to do? How do I resolve this int to float conversion error?