Differences From Artifact [a978c1217d]:
- File
src/OFNumber.m
— part of check-in
[d74f244ab7]
at
2020-08-12 20:56:32
on branch trunk
— Avoid using (u)intmax_t in methods
It is not guaranteed that a type encoding for it exists. (user: js, size: 29075) [annotate] [blame] [check-ins using]
To Artifact [c26097a3d6]:
- File
src/OFNumber.m
— part of check-in
[be8b442546]
at
2020-08-16 18:28:17
on branch trunk
— OFNumber: Remove ssize_t
It's a non-standard type that should only be used for matching POSIX
APIs. (user: js, size: 28506) [annotate] [blame] [check-ins using]
︙ | |||
268 269 270 271 272 273 274 | 268 269 270 271 272 273 274 275 276 277 278 279 280 281 | - - - - - - - - - - | { if (value <= ULONG_MAX) return [self initWithUnsignedLong: (unsigned long)value]; return (id)[[OFNumber of_alloc] initWithSize: value]; } |
︙ | |||
489 490 491 492 493 494 495 | 479 480 481 482 483 484 485 486 487 488 489 490 491 492 | - - - - - | } + (instancetype)numberWithSize: (size_t)value { return [[[self alloc] initWithSize: value] autorelease]; } |
︙ | |||
741 742 743 744 745 746 747 | 726 727 728 729 730 731 732 733 734 735 736 737 738 739 | - - - - - - - - - - - | { self = [super init]; _value.unsigned_ = value; _type = OF_NUMBER_TYPE_UNSIGNED; _typeEncoding = @encode(size_t); |
︙ | |||
1007 1008 1009 1010 1011 1012 1013 | 981 982 983 984 985 986 987 988 989 990 991 992 993 994 | - - - - - | } - (size_t)sizeValue { RETURN_AS(size_t) } |
︙ |