28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
size_t newsize;
struct of_dictionary_bucket *newdata;
uint32_t i;
if (count > SIZE_MAX / 4)
@throw [OFOutOfRangeException newWithClass: isa];
if (fill > 3)
newsize = *size << 1;
else if (fill < 1)
newsize = *size >> 1;
else
return;
if (newsize == 0)
@throw [OFOutOfRangeException newWithClass: isa];
|
|
|
|
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
size_t newsize;
struct of_dictionary_bucket *newdata;
uint32_t i;
if (count > SIZE_MAX / 4)
@throw [OFOutOfRangeException newWithClass: isa];
if (fill >= 3)
newsize = *size << 1;
else if (fill <= 1)
newsize = *size >> 1;
else
return;
if (newsize == 0)
@throw [OFOutOfRangeException newWithClass: isa];
|