[FFmpeg-cvslog] r11697 - trunk/libavutil/lls.c

michael subversion
Thu Jan 31 21:52:15 CET 2008


Author: michael
Date: Thu Jan 31 21:52:14 2008
New Revision: 11697

Log:
Fix the following using void* casts, proper casts are less readable and
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


Modified:
   trunk/libavutil/lls.c

Modified: trunk/libavutil/lls.c
==============================================================================
--- trunk/libavutil/lls.c	(original)
+++ trunk/libavutil/lls.c	Thu Jan 31 21:52:14 2008
@@ -53,8 +53,8 @@ void av_update_lls(LLSModel *m, double *
 
 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;
 




More information about the ffmpeg-cvslog mailing list