Differences From Artifact [ab0bec9deb]:
- File
src/OFMethodSignature.m
— part of check-in
[8417c40405]
at
2017-09-12 23:49:39
on branch trunk
— invoke-x86_64.m: Minor refactor
This makes it easier to add more complex types. (user: js, size: 11198) [annotate] [blame] [check-ins using]
To Artifact [459569951b]:
- File src/OFMethodSignature.m — part of check-in [17461b9a5d] at 2017-09-25 23:25:25 on branch trunk — OFMethodSignature: Fix a possible divide by zero (user: js, size: 11263) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
45 46 47 48 49 50 51 52 53 54 55 56 57 58 | while (*length > 0 && isdigit(**type)) { count = count * 10 + **type - '0'; (*type)++; (*length)--; } size = sizeofEncoding(type, length); if (*length == 0 || **type != ']') @throw [OFInvalidFormatException exception]; (*type)++; (*length)--; | > > > | 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | while (*length > 0 && isdigit(**type)) { count = count * 10 + **type - '0'; (*type)++; (*length)--; } if (count == 0) @throw [OFInvalidFormatException exception]; size = sizeofEncoding(type, length); if (*length == 0 || **type != ']') @throw [OFInvalidFormatException exception]; (*type)++; (*length)--; |
︙ | ︙ |