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

[ASDimension] Remove warning about float precision using CGFloat and … #trivial #237

Merged

Conversation

amegias
Copy link
Contributor

@amegias amegias commented May 4, 2017

Remove the warning which appears when we build framework.
We were trying to build a static CGFloat assigning a Double.

@CLAassistant
Copy link

CLAassistant commented May 4, 2017

CLA assistant check
All committers have signed the CLA.

@ghost
Copy link

ghost commented May 4, 2017

1 Warning
⚠️ Any source code changes should have an entry in CHANGELOG.md or have #trivial in their title.

Generated by 🚫 Danger

Copy link
Member

@Adlai-Holler Adlai-Holler left a comment

Choose a reason for hiding this comment

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

Hey @amegias yeah, unfortunately this cast does represent a loss of information on 32-bit architectures, so we should acknowledge it in public headers.

@Adlai-Holler Adlai-Holler changed the title [ASDimension] Remove warning about float precision using CGFloat and … [ASDimension] Remove warning about float precision using CGFloat and … #trivial May 8, 2017
@Adlai-Holler Adlai-Holler merged commit ad9924a into TextureGroup:master May 8, 2017
@Adlai-Holler
Copy link
Member

Note: Internal to the framework, we should continue to use unannotated floating-point literals like 0.5 – we control the build environment here and we can accept the loss of information for cleaner code.

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

3 participants