[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#585654: [PATCH] espeak broken on big-endian



tags 585654 + patch upstream pending
forwarded 585654 espeak-general@lists.sourceforge.net
thanks

Hello,

The current version (1.43.03) of espeak is broken on big-endian
machines.  Please apply attached patch to fix the big-endian converter.

Samuel
diff --git a/platforms/big_endian/espeak-phoneme-data.c b/platforms/big_endian/espeak-phoneme-data.c
index 24155cd..c0abbca 100644
--- a/platforms/big_endian/espeak-phoneme-data.c
+++ b/platforms/big_endian/espeak-phoneme-data.c
@@ -288,7 +288,7 @@ void swap_phonindex (const char *infile, const char *outfile)
 {//==========================================================
     FILE *in, *out;
     char buf_4[4];
-    unsigned int val;
+    unsigned short val;
 
     in = fopen (infile, "rb");
     if (in == NULL) {

Reply to: