Skip to content

Error to generate binary #2697

@EduardoMonH

Description

@EduardoMonH

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions