Changeset 9cb305 in git


Ignore:
Timestamp:
Jul 29, 2013, 5:20:20 PM (11 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
ddf322c56f685741b1af472fa594094a49f8c6ad
Parents:
3631a1348b10ecae02a13616277e1ba0458f46e7
Message:
fix: compiler warnings
Location:
Singular
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/extra.cc

    r3631a1 r9cb305  
    32653265        ideal GI = (ideal) h->Data();
    32663266        res->rtyp = INT_CMD;
    3267         res->data = (void *) testGB(I, GI);
     3267        res->data = (void *)(long) testGB(I, GI);
    32683268        return(FALSE);
    32693269      }
  • Singular/ipshell.cc

    r3631a1 r9cb305  
    21712171        ch = l;
    21722172      }
    2173       R->cf = nInitChar(n_Zp, (void*)ch);
     2173      R->cf = nInitChar(n_Zp, (void*)(long)ch);
    21742174    }
    21752175  }
     
    27292729  //row_shift += add_row_shift;
    27302730  //Print("row_shift=%d, add_row_shift=%d\n",row_shift,add_row_shift);
    2731   atSet(res,omStrDup("rowShift"),(void*)add_row_shift,INT_CMD);
     2731  atSet(res,omStrDup("rowShift"),(void*)(long)add_row_shift,INT_CMD);
    27322732
    27332733  return FALSE;
     
    29962996    L->m[5].rtyp = INTVEC_CMD; //  multiplicities
    29972997
    2998     L->m[0].data = (void*)spec.mu;
    2999     L->m[1].data = (void*)spec.pg;
    3000     L->m[2].data = (void*)spec.n;
     2998    L->m[0].data = (void*)(long)spec.mu;
     2999    L->m[1].data = (void*)(long)spec.pg;
     3000    L->m[2].data = (void*)(long)spec.n;
    30013001    L->m[3].data = (void*)num;
    30023002    L->m[4].data = (void*)den;
     
    33593359      (*L)->Init( 1 );
    33603360      (*L)->m[0].rtyp = INT_CMD;    //  milnor number
    3361       (*L)->m[0].data = (void*)mu;
     3361      (*L)->m[0].data = (void*)(long)mu;
    33623362
    33633363      return spectrumDegenerate;
     
    33763376  (*L)->m[5].rtyp = INTVEC_CMD; //  multiplicities
    33773377
    3378   (*L)->m[0].data = (void*)mu;
    3379   (*L)->m[1].data = (void*)pg;
    3380   (*L)->m[2].data = (void*)n;
     3378  (*L)->m[0].data = (void*)(long)mu;
     3379  (*L)->m[1].data = (void*)(long)pg;
     3380  (*L)->m[2].data = (void*)(long)n;
    33813381  (*L)->m[3].data = (void*)nom;
    33823382  (*L)->m[4].data = (void*)den;
     
    41164116    res->rtyp = INT_CMD;
    41174117    if (qh)
    4118       res->data = (void*)(s1.mult_spectrumh( s2 ));
     4118      res->data = (void*)(long)(s1.mult_spectrumh( s2 ));
    41194119    else
    4120       res->data = (void*)(s1.mult_spectrum( s2 ));
     4120      res->data = (void*)(long)(s1.mult_spectrum( s2 ));
    41214121  }
    41224122
     
    42154215
    42164216  lres->m[1].rtyp= INT_CMD;   // found a solution?
    4217   lres->m[1].data=(void*)LP->icase;
     4217  lres->m[1].data=(void*)(long)LP->icase;
    42184218
    42194219  lres->m[2].rtyp= INTVEC_CMD;
     
    42244224
    42254225  lres->m[4].rtyp= INT_CMD;
    4226   lres->m[4].data=(void*)LP->m;
     4226  lres->m[4].data=(void*)(long)LP->m;
    42274227
    42284228  lres->m[5].rtyp= INT_CMD;
    4229   lres->m[5].data=(void*)LP->n;
     4229  lres->m[5].data=(void*)(long)LP->n;
    42304230
    42314231  res->data= (void*)lres;
     
    57615761    memset(&tmp_in,0,sizeof(tmp_in));
    57625762    tmp_in.rtyp=INT_CMD;
    5763     tmp_in.data=(void*)(*aa)[i];
     5763    tmp_in.data=(void*)(long)(*aa)[i];
    57645764    if (proc==NULL)
    57655765      bo=iiExprArith1(&tmp_out,&tmp_in,op);
Note: See TracChangeset for help on using the changeset viewer.