Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Incompatible Type: There may be a loss in converting from double to long #262

Open
li-fcb1899 opened this issue Sep 21, 2024 · 1 comment

Comments

@li-fcb1899
Copy link

li-fcb1899 commented Sep 21, 2024

BenchmarkTaskResult results = new BenchmarkTaskResult(res.allOps, res.measuredOps);
image

In the generated Java code

RawResults res = new RawResults();
/*...*/
 BenchmarkTaskResult results = new BenchmarkTaskResult(res.allOps, res.measuredOps);

but

public class RawResults {

    public double allOps;
    public double measuredOps;
    /*...*/
}
public BenchmarkTaskResult(long allOperations, long measuredOperations)

Why treat double as long?

@fzhinkin
Copy link
Contributor

Hey @li-fcb1899! Could you please share some details on how to reproduce the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants