shithub: flite

Download patch

ref: 56ac2b4a345d78c0c8637f5f1cfc67d0cb1631e4
parent: 641b9687494c1351b1f085171c8786e156434630
author: Alan W Black <awb@cs.cmu.edu>
date: Tue Jul 7 13:25:35 EDT 2020

fix warnings

--- a/src/wavesynth/cst_units.c
+++ b/src/wavesynth/cst_units.c
@@ -586,6 +586,7 @@
 			int unit_size, const unsigned char *unit_residual)
 {
     int i,m;
+#if defined(__x86_64__)
     long long p;
     /* Unit residual isn't a pointer its a number, the power for the 
        the sts, yes this is hackily casting the address to a number */
@@ -592,6 +593,14 @@
 
     /* Need voiced and unvoiced model */
     p = (long long)unit_residual; /* I know the compiler will complain about this */
+#else
+    long p;
+    /* Unit residual isn't a pointer its a number, the power for the 
+       the sts, yes this is hackily casting the address to a number */
+
+    /* Need voiced and unvoiced model */
+    p = (long)unit_residual; /* I know the compiler will complain about this */
+#endif
 
     if (p > 7000)  /* voiced */
     {