Changeset 2689 in Sophya


Ignore:
Timestamp:
Apr 26, 2005, 11:52:55 AM (20 years ago)
Author:
ansari
Message:

Suite adaptation a modif interface_ntuple (remplacement int par sa_size_t (oublie ds implementation specifique pour classes template)) et suppression warning de compil pour format printf/sprintf ds pawexecut.cc , pintuple.cc - Reza 26/4/2005

Location:
trunk/SophyaPI/PIext
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/nomskymapadapter.cc

    r2683 r2689  
    408408
    409409DECL_TEMP_SPEC  /* equivalent a template <> , pour SGI-CC en particulier */
    410 r_8* NTupInt_PixelMap< complex<float> >::GetLineD(int n) const
     410r_8* NTupInt_PixelMap< complex<float> >::GetLineD(sa_size_t n) const
    411411{
    412412int i;
     
    426426
    427427DECL_TEMP_SPEC  /* equivalent a template <> , pour SGI-CC en particulier */
    428 r_8* NTupInt_PixelMap< complex<double> >::GetLineD(int n) const
     428r_8* NTupInt_PixelMap< complex<double> >::GetLineD(sa_size_t n) const
    429429{
    430430int i;
  • trunk/SophyaPI/PIext/nomtarradapter.cc

    r2683 r2689  
    227227/* --Methode-- */
    228228DECL_TEMP_SPEC  /* equivalent a template <> , pour SGI-CC en particulier */
    229 r_8* NTupInt_TArray< complex<r_4> >::GetLineD(int n) const
     229r_8* NTupInt_TArray< complex<r_4> >::GetLineD(sa_size_t n) const
    230230{
    231231if ((n < 0) || (n >= (int)(mArr->Size()) ) ) {
     
    247247
    248248DECL_TEMP_SPEC  /* equivalent a template <> , pour SGI-CC en particulier */
    249 r_8* NTupInt_TArray< complex<r_8> >::GetLineD(int n) const
     249r_8* NTupInt_TArray< complex<r_8> >::GetLineD(sa_size_t n) const
    250250{
    251251if ((n < 0) || (n >= (int)(mArr->Size()) ) ) {
  • trunk/SophyaPI/PIext/nomtmatvecadapter.cc

    r2683 r2689  
    353353/* --Methode-- */
    354354DECL_TEMP_SPEC  /* equivalent a template <> , pour SGI-CC en particulier */
    355 r_8* NTupInt_TMatrix< complex<r_4> >::GetLineD(int n) const
     355r_8* NTupInt_TMatrix< complex<r_4> >::GetLineD(sa_size_t n) const
    356356{
    357357int i,j;
     
    371371
    372372DECL_TEMP_SPEC  /* equivalent a template <> , pour SGI-CC en particulier */
    373 r_8* NTupInt_TMatrix< complex<r_8> >::GetLineD(int n) const
     373r_8* NTupInt_TMatrix< complex<r_8> >::GetLineD(sa_size_t n) const
    374374{
    375375int i,j;
  • trunk/SophyaPI/PIext/pawexecut.cc

    r2684 r2689  
    591591    xn = objnt->GetLineD(k);
    592592    if(f((int_8_exprf)k,xn,xnt,xnt+1,xnt+2,xnt+3) != 0) {
    593       if(fout) fprintf(fout,"%d ",k); else printf("%d ",k);
     593      if(fout) fprintf(fout,"%ld ",(long)k); else printf("%ld ",(long)k);
    594594      for(i=0;i<(int)varnum.size();i++) {
    595595        if(fout) fprintf(fout,"%g ",*(xn+varnum[i]));
  • trunk/SophyaPI/PIext/pintuple.cc

    r2642 r2689  
    151151double xp,yp,xer,yer,wp;
    152152double xl,yl;
    153 int nok,npolyg;
     153long nok;
     154int npolyg;
    154155
    155156if (!mNT) return;
     
    263264  // Les labels et leurs longueurs -> largeur de la cellule
    264265  char label[64];
    265   sprintf(label, "N=%d (/%d)", nok, mNT->NbLines());
     266  sprintf(label, "N=%ld (/%ld)", (long)nok, (long)mNT->NbLines());
    266267  double cellWidth =   1.1 * (double)g->CalcStringWidth(label);
    267268  double xu, yu, cw;
     
    298299double xp,yp;
    299300char buff[128];
    300 sprintf(buff,"PINTuple: NLines= %d  NCol= %d \n", mNT->NbLines(),  mNT->NbColumns());
     301sprintf(buff,"PINTuple: NLines= %ld  NCol= %ld \n", (long)mNT->NbLines(), 
     302        (long)mNT->NbColumns());
    301303info += buff;
    302304info += mNT->LineHeaderToString();
Note: See TracChangeset for help on using the changeset viewer.