Browse Source

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

master
Reece H. Dunn 9 years ago
parent
commit
825a8a4710
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/libespeak-ng/compiledata.c

+ 1
- 1
src/libespeak-ng/compiledata.c 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++) {

Loading…
Cancel
Save