Skip to content

SRF_Time: Fix "Implicit conversion from float x to int loses precision" #878

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

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

paladox
Copy link
Contributor

@paladox paladox commented Dec 17, 2024

Fixes #877

@paladox
Copy link
Contributor Author

paladox commented Dec 17, 2024

I think this fixes a bug as well if you have like 1.1 and 1.2 it would only allow one because the float was being converted to an int. Now that we use a string, floats should work.

@JeroenDeDauw JeroenDeDauw merged commit dfb2ba3 into master Dec 17, 2024
1 of 2 checks passed
@JeroenDeDauw JeroenDeDauw deleted the paladox-patch-1 branch December 17, 2024 21:52
@paladox paladox restored the paladox-patch-1 branch December 17, 2024 22:21
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

Successfully merging this pull request may close these issues.

Deprecated: Implicit conversion from float x to int loses precision
2 participants