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

Fix build error in Xcode 15 #45

Merged
merged 1 commit into from
Sep 17, 2023
Merged

Fix build error in Xcode 15 #45

merged 1 commit into from
Sep 17, 2023

Conversation

Jeehut
Copy link
Contributor

@Jeehut Jeehut commented Sep 17, 2023

Fixes a build error stating Ambiguous use of operator '/'.

@fummicc1
Copy link
Owner

fummicc1 commented Sep 17, 2023

@Jeehut

Hi, thank you for really quick and nice fix.
I could reproduce it!

but I am not sure the detail in this error. do you know it, like why this error happens or what is related change in Swift 5.9..?

@fummicc1
Copy link
Owner

I mean there might be something wrong in latest Swift because I didn't know any change between Swift5.8 and 5.9 which cause this error.

Copy link
Owner

@fummicc1 fummicc1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

anyway thank you so much!

@fummicc1 fummicc1 merged commit d03f21e into fummicc1:main Sep 17, 2023
2 checks passed
@Jeehut
Copy link
Contributor Author

Jeehut commented Sep 19, 2023

@fummicc1 No idea, I guess the type inference logic was changed and it could no longer infer the type (Int vs. Double). I mean 1/2 could be an Int while 0.5 clearly is a Double. Probably something along these lines.

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.

None yet

2 participants