ibireme / YYCategories

A set of useful categories for Foundation and UIKit.
MIT License
826 stars 218 forks source link

Type fix? #16

Closed WenchaoD closed 8 years ago

WenchaoD commented 8 years ago

Type fix?

ibireme commented 8 years ago

l is int 32 and q is int 64. This is not a mistake.

WenchaoD commented 8 years ago

Is there any difference between i and l?

ibireme commented 8 years ago

In armv7 system, @encode(int) is i, @encode(long) is l, but the sizeof(int) is equals to sizeof(long). In arm64 system, @encode(int) is i, @encode(long) is q, and the sizeof(long) is larger than sizeof(int).