c = *p++;
ret *= 16;
- if (c >= '0' && c <= '9') ret += c - '0';
- else if (c >= 'A' && c <= 'F') ret += c - 'A' + 10;
- else if (c >= 'a' && c <= 'f') ret += c - 'a' + 10;
+ if (c >= '0' && c <= '9') { ret += c - '0'; }
+ else if (c >= 'A' && c <= 'F') { ret += c - 'A' + 10; }
+ else if (c >= 'a' && c <= 'f') { ret += c - 'a' + 10; }
if (end - o > 0) {
*o++ = (gchar)ret;
c = *p++;
ret *= 16;
- if (c >= '0' && c <= '9') ret += c - '0';
- else if (c >= 'A' && c <= 'F') ret += c - 'A' + 10;
- else if (c >= 'a' && c <= 'f') ret += c - 'a' + 10;
+ if (c >= '0' && c <= '9') { ret += c - '0'; }
+ else if (c >= 'A' && c <= 'F') { ret += c - 'A' + 10; }
+ else if (c >= 'a' && c <= 'f') { ret += c - 'a' + 10; }
if (end - o > 0) {
*o++ = (gchar)ret;