ObjFW  Diff

Differences From Artifact [53db2a4c2e]:

To Artifact [b96e56399e]:


18
19
20
21
22
23
24





25
26
27
28
29
30
31

#import "OFCharacterSet_range.h"
#import "OFString.h"

#import "OFOutOfRangeException.h"

@implementation OFCharacterSet_range





- (instancetype)initWithRange: (of_range_t)range
{
	self = [super init];

	@try {
		if (SIZE_MAX - range.location < range.length)
			@throw [OFOutOfRangeException exception];







>
>
>
>
>







18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

#import "OFCharacterSet_range.h"
#import "OFString.h"

#import "OFOutOfRangeException.h"

@implementation OFCharacterSet_range
- (instancetype)init
{
	OF_INVALID_INIT_METHOD
}

- (instancetype)initWithRange: (of_range_t)range
{
	self = [super init];

	@try {
		if (SIZE_MAX - range.location < range.length)
			@throw [OFOutOfRangeException exception];