ObjFW  Diff

Differences From Artifact [fb4ac5dc95]:

To Artifact [00bfbc007f]:


51
52
53
54
55
56
57
58
59
60
61

62
63
64
65
66
67
68
			low = *s & 0x0F;

			ret_c[i++] = '%';
			ret_c[i++] = (high > 9 ? high - 10 + 'A' : high + '0');
			ret_c[i++] = (low  > 9 ? low  - 10 + 'A' : low  + '0');
		}
	}
	ret_c[i] = '\0';

	@try {
		ret = [OFString stringWithCString: ret_c];

	} @finally {
		free(ret_c);
	}

	return ret;
}








<


|
>







51
52
53
54
55
56
57

58
59
60
61
62
63
64
65
66
67
68
			low = *s & 0x0F;

			ret_c[i++] = '%';
			ret_c[i++] = (high > 9 ? high - 10 + 'A' : high + '0');
			ret_c[i++] = (low  > 9 ? low  - 10 + 'A' : low  + '0');
		}
	}


	@try {
		ret = [OFString stringWithCString: ret_c
					   length: i];
	} @finally {
		free(ret_c);
	}

	return ret;
}

121
122
123
124
125
126
127
128
129
130
131
	}

	@try {
		ret = [OFString stringWithCString: ret_c];
	} @finally {
		free(ret_c);
	}

	return ret;
}
@end







<



121
122
123
124
125
126
127

128
129
130
	}

	@try {
		ret = [OFString stringWithCString: ret_c];
	} @finally {
		free(ret_c);
	}

	return ret;
}
@end