Fix the following using void* casts, proper casts are less readable and
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 31 Jan 2008 20:52:14 +0000 (20:52 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 31 Jan 2008 20:52:14 +0000 (20:52 +0000)
avoiding casts would be even less readable, but other suggestions are welcome.
lls.c:56: warning: initialization from incompatible pointer type
lls.c:57: warning: initialization from incompatible pointer type

Originally committed as revision 11697 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavutil/lls.c

index 43c6790d7dd49472e4749f28c8468c7ae2b52359..b9d2d816817ab38d66d86210526b84fa1cec5995 100644 (file)
@@ -53,8 +53,8 @@ void av_update_lls(LLSModel *m, double *var, double decay){
 
 void av_solve_lls(LLSModel *m, double threshold, int min_order){
     int i,j,k;
-    double (*factor)[MAX_VARS+1]= &m->covariance[1][0];
-    double (*covar )[MAX_VARS+1]= &m->covariance[1][1];
+    double (*factor)[MAX_VARS+1]= (void*)&m->covariance[1][0];
+    double (*covar )[MAX_VARS+1]= (void*)&m->covariance[1][1];
     double  *covar_y            =  m->covariance[0];
     int count= m->indep_count;