Ignore:
Timestamp:
Sep 1, 1999, 6:27:56 PM (26 years ago)
Author:
ansari
Message:

bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Poubelle/archTOI.old/ssthandler.cc

    r397 r399  
    207207                }
    208208                else {
    209                         pPiste->push(Diodedata);
     209                        pPiste->push(Diodedata,Pousslong);
    210210                        offseDataDiod+=Pousslong;
    211211                }
     
    232232                        }
    233233                // Est-on en bout de Piste?
    234                         if(offseDataDiod+Pousslong>=NbSampleBlock) break;
    235                         else {
    236                                 pPiste->push(Diodedata+offseDataDiod);
    237                                 offseDataDiod+=Pousslong;
    238                         }
     234                    int npouss = Pousslong;
     235                    if (offseDataDiod+npouss > NbSampleBlock) npouss = NbSampleBlock-offseDataDiod;
     236                    if (npouss<=0) break;
     237                        pPiste->push(Diodedata+offseDataDiod,npouss);
     238                        offseDataDiod+=npouss;
    239239                }
    240240        }
Note: See TracChangeset for help on using the changeset viewer.