Commits

Anonymous committed 6664474

fixing warnings/errors reported by Microsoft Visual Studio

Comments (0)

Files changed (2)

   word *Brow;
 
   /* setup mathematical permutation */
-  size_t *permutation = m4ri_mm_calloc(sizeof(size_t),A->ncols);
+  size_t *permutation = (size_t *)m4ri_mm_calloc(sizeof(size_t),A->ncols);
   for(size_t i=0; i<A->ncols; i++)
     permutation[i] = i;
 
   }
 
   /* we have a bitmask to encode where to write to */
-  word *write_mask = m4ri_mm_calloc(sizeof(word), length);
+  word *write_mask = (word*)m4ri_mm_calloc(sizeof(word), length);
   for(size_t i=0; i<A->ncols; i+=RADIX) {
     const size_t todo = MIN(RADIX,A->ncols-i);
     for(size_t k=0; k<todo; k++) {
   size_t i, l, curr_pos;
   int found;
 
-  word bm[k];
-  size_t os[k];
+  word bm[4*MAXKAY];
+  size_t os[4*MAXKAY];
 
   for(curr_pos=0; curr_pos < (size_t)k; curr_pos++) {
     os[curr_pos] = (start_col+curr_pos)/RADIX;