Skip to content

Fix some warnings by adding explicit typecasts#51

Open
tsparber wants to merge 1 commit intomindbrix:masterfrom
tsparber:fix-warnings
Open

Fix some warnings by adding explicit typecasts#51
tsparber wants to merge 1 commit intomindbrix:masterfrom
tsparber:fix-warnings

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