NSNumber literals

This commit is contained in:
Dmitry Serov
2017-07-07 17:34:27 +07:00
parent 8c88e8bba0
commit 80a2adc074
12 changed files with 52 additions and 52 deletions

View File

@@ -1148,7 +1148,7 @@
{
int num = [component intValue];
if (num >= 0 && num < 256)
[newComponents addObject: [[NSNumber numberWithInt: num] stringValue]];
[newComponents addObject: [@(num) stringValue]];
else
{
valid = false;