- buf2[0] = hexString[bufPtr + 4];
- buf2[1] = hexString[bufPtr + 5];
- buf2[2] = hexString[bufPtr + 6];
- buf2[3] = hexString[bufPtr + 7];
+ buf2[0] = hexString[(size_t)(bufPtr + 4)];
+ buf2[1] = hexString[(size_t)(bufPtr + 5)];
+ buf2[2] = hexString[(size_t)(bufPtr + 6)];
+ buf2[3] = hexString[(size_t)(bufPtr + 7)];