TSCurrencyTextField
TSCurrencyTextField copied to clipboard
Warnings in iPhone Retina (4-inch 64-bit)
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
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.
Great! That solved it. Thank you very much!
I'm glad that I was able to help you. :smile: