Ignore:
Timestamp:
Apr 16, 2002, 10:28:53 AM (23 years ago)
Author:
aubourg
Message:

correction bug pour cyrille

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/Kernel/toisegment.cc

    r1944 r1964  
    33//                               Christophe Magneville
    44//                               Reza Ansari
    5 // $Id: toisegment.cc,v 1.26 2002-03-23 23:05:22 aubourg Exp $
     5// $Id: toisegment.cc,v 1.27 2002-04-16 08:28:53 aubourg Exp $
    66
    77#include "toisegment.h"
     
    201201    throw(ForbiddenError("TOISegment : putData in committed buffer"));
    202202  }
     203  if (n==0) return;
    203204  checkInRange(sn);
    204205  checkInRange(sn+n-1);
     
    412413    }
    413414    int sn2 = snmax > (sn1+nsam-1) ? (sn1+nsam-1) : snmax;
    414     if (snmax>0) {
    415       int nput = sn2-sn1+1;
     415    int nput = sn2-sn1+1;
     416    if (snmax>0 && nput>0) {
    416417      currentSegment->putData(sn1, nput, pdat, pflg);
    417418      pdat += nput;
Note: See TracChangeset for help on using the changeset viewer.