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

C# precision=double compiler error - wrong epsilon variable #88993

Closed
TCROC opened this issue Feb 29, 2024 · 3 comments · Fixed by #88994
Closed

C# precision=double compiler error - wrong epsilon variable #88993

TCROC opened this issue Feb 29, 2024 · 3 comments · Fixed by #88994

Comments

@TCROC
Copy link
Contributor

TCROC commented Feb 29, 2024

Tested versions

v4.3.dev.mono.custom_build.df78c0636

System information

Pop OS 22.04

Issue description

Looks like the MathfEx.cs class was refactored. For 64 bit / double builds, Epsilon should be pointing to EpsilonD instead of what I presume was the old _epsilonD.

public const real_t Epsilon = _epsilonD;

Steps to reproduce

Do a 64 bit C# build of godot

Minimal reproduction project (MRP)

NA

@TCROC
Copy link
Contributor Author

TCROC commented Feb 29, 2024

Really simple fix. I put in a PR for it. Do we have a CI that checks 64 bit C# builds? If so, I'm curious how it missed this. And if not, I can open another issue to add one in as an enhancement.

I'd be glad to contribute it as we depend on that stability :)

@raulsntos raulsntos linked a pull request Feb 29, 2024 that will close this issue
@raulsntos
Copy link
Member

Do we have a CI that checks 64 bit C# builds?

No. The only .NET-enabled builds we do in CI are the Linux editor and the Linux template, both using single precision. We have a double precision build but that one doesn't enable the .NET module.

We try to cover most configurations in the matrix of builds we do in CI, but we can't cover every possible combination since the bigger the matrix the more resources it requires and the longer it takes to complete.

@raulsntos raulsntos added this to the 4.3 milestone Feb 29, 2024
@TCROC
Copy link
Contributor Author

TCROC commented Feb 29, 2024

Makes sense. Should we added the .NET module to the double precision build? I don't expect it would increase the build time too significantly. And it would prevent adding an additional CI as it would just add on to the existing CI.

@akien-mga akien-mga changed the title C# 64 bit compiler error - wrong epsilon variable C# precision=double compiler error - wrong epsilon variable Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants