![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
QC Control software
Fork of dgps by
Diff: handle/dataLocation.cpp
- Revision:
- 47:fd373c4ea831
- Parent:
- 40:7b4d6043f533
- Child:
- 48:dc9269ce9a79
--- a/handle/dataLocation.cpp Fri Apr 25 23:50:51 2014 +0000 +++ b/handle/dataLocation.cpp Sat Apr 26 04:01:13 2014 +0000 @@ -40,9 +40,11 @@ void LocHolder::add(LHType type,DataLocation newLoc){ // Set the current index to the current size - getI(type)=getI(type,LHIType_size); + //getI(type)=getI(type,LHIType_size); + inc(type); // Increment size - getI(type,LHIType_size)++; + unsigned int newSize=getI(type,LHIType_size)+1; + getI(type,LHIType_size)=newSize>MAXNUMLOCS?MAXNUMLOCS:newSize; // Assign current index getC(type,getI(type))=newLoc; }