void-packages/srcpkgs/espeak/patches/fix-narrowing.patch

12 lines
385 B
Diff

--- src/tr_languages.cpp
+++ src/tr_languages.cpp
@@ -198,7 +198,7 @@ static const unsigned short chars_ignore
0x200d, 1, // zero width joiner
0, 0 };
-const char string_ordinal[] = {0xc2,0xba,0}; // masculine ordinal character, UTF-8
+const char string_ordinal[] = {(char)0xc2,(char)0xba,0}; // masculine ordinal character, UTF-8
static Translator* NewTranslator(void)