unsigned long FourCharCodeFromNSString(NSString *string) {
const unsigned char *c_s = [string UTF8String];
- unsigned long tmp = *c_s++;
- tmp <<= 8;
- tmp |= *c_s++;
- tmp <<= 8;
- tmp |= *c_s++;
- tmp <<= 8;
- return tmp |= *c_s++;
+ unsigned long tmp = *c_s++;
+ tmp <<= 8;
+ tmp |= *c_s++;
+ tmp <<= 8;
+ tmp |= *c_s++;
+ tmp <<= 8;
+ return tmp |= *c_s++;
}
\ No newline at end of file