compiledata: Avoid a warning when using %x in CompilePhoneme.

This commit is contained in:
Reece H. Dunn
2016-06-05 08:51:30 +01:00
parent 1afe61f8fe
commit 825a8a4710
+1 -1
View File
@@ -2133,7 +2133,7 @@ int CompilePhoneme(int compile_phoneme)
memcpy(number_buf, p, 4); // U+ should be followed by 4 hex digits
number_buf[4] = 0;
c = '#';
sscanf(number_buf, "%x", &c);
sscanf(number_buf, "%x", (unsigned int *)&c);
// move past the 4 hexdecimal digits
for (j = 0; j < 4; j++) {