Skip to content

Fix some warnings by adding explicit typecasts #51

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tsparber
Copy link

@tsparber tsparber commented Sep 7, 2016

If more warnings are enable in Xcode these warnings are shown:

  • Implicit conversion turns floating-point number into integer: 'float' to 'size_t' (aka 'unsigned long’)
  • Implicit conversion loses floating-point precision: 'double' to 'CGFloat' (aka 'float’)

This commit fixes these by adding explicit typecasts.

If more warnings are enable in Xcode these warnings are shown:

* `Implicit conversion turns floating-point number into integer: 'float' to 'size_t' (aka 'unsigned long’)`
* `Implicit conversion loses floating-point precision: 'double' to 'CGFloat' (aka 'float’)`

This commit fixes these by adding explicit typecasts.
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.

1 participant