TSCurrencyTextField icon indicating copy to clipboard operation
TSCurrencyTextField copied to clipboard

Warnings in iPhone Retina (4-inch 64-bit)

Open thewinger opened this issue 10 years ago • 3 comments

HI, @TomSwift , first of all, thank you for the great work.

When I run the project in the iOS Simulator iPhone Retina (4-inch 64-bit) I get this warnings

…/TSCurrencyTextField/TSCurrencyTextField/TSCurrencyTextField.m:77:62: Field precision should have type 'int', but argument has type 'NSUInteger' (aka 'unsigned long')

…/TSCurrencyTextField/TSCurrencyTextField/TSCurrencyTextField.m:155:49: Implicit conversion loses integer precision: 'unsigned long' to 'int'

…/TSCurrencyTextField/TSCurrencyTextField/TSCurrencyTextField.m:160:37: Implicit conversion loses integer precision: 'unsigned long' to 'int'

Is there a way to solve them?

Thank you for your time and effort

thewinger avatar May 24 '14 10:05 thewinger

To fix the two integer precision warnings make them a long integer. To fix the field precision warning make the argument a short integer. That should fix it. By the way, I already created a Pull Request with the fixes.

marcelvoss avatar May 29 '14 00:05 marcelvoss

Great! That solved it. Thank you very much!

thewinger avatar May 30 '14 12:05 thewinger

I'm glad that I was able to help you. :smile:

marcelvoss avatar May 30 '14 12:05 marcelvoss