Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Error to generate binary #2697

Copy link
Copy link

Description

@EduardoMonH
Issue body actions

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?

Reactions are currently unavailable

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

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.