mirror of
https://github.com/darlinghq/class-dump.git
synced 2024-11-23 04:19:41 +00:00
Use 10 (not 6) bits in source version fields B-E.
This commit is contained in:
parent
0405b6860d
commit
2c82b4ff12
@ -38,11 +38,11 @@
|
||||
- (NSString *)sourceVersionString;
|
||||
{
|
||||
// A.B.C.D.E packed as a24.b10.c10.d10.e10
|
||||
uint32_t a = (_sourceVersionCommand.version >> 40);
|
||||
uint32_t b = (_sourceVersionCommand.version >> 30) & 0x3f;
|
||||
uint32_t c = (_sourceVersionCommand.version >> 20) & 0x3f;
|
||||
uint32_t d = (_sourceVersionCommand.version >> 10) & 0x3f;
|
||||
uint32_t e = _sourceVersionCommand.version & 0x3f;
|
||||
uint32_t a = _sourceVersionCommand.version >> 40;
|
||||
uint32_t b = (_sourceVersionCommand.version >> 30) & 0x3ff;
|
||||
uint32_t c = (_sourceVersionCommand.version >> 20) & 0x3ff;
|
||||
uint32_t d = (_sourceVersionCommand.version >> 10) & 0x3ff;
|
||||
uint32_t e = _sourceVersionCommand.version & 0x3ff;
|
||||
|
||||
return [NSString stringWithFormat:@"%u.%u.%u.%u.%u", a, b, c, d, e];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user