Skip to content

Error to generate binary #2697

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions