Colin Stearns
/
qcControl
QC Control software
Fork of dgps by
Diff: handle/dataLocation.cpp
- Revision:
- 48:dc9269ce9a79
- Parent:
- 47:fd373c4ea831
--- a/handle/dataLocation.cpp Sat Apr 26 04:01:13 2014 +0000 +++ b/handle/dataLocation.cpp Sat Apr 26 04:03:20 2014 +0000 @@ -41,10 +41,11 @@ void LocHolder::add(LHType type,DataLocation newLoc){ // Set the current index to the current size //getI(type)=getI(type,LHIType_size); - inc(type); // Increment size unsigned int newSize=getI(type,LHIType_size)+1; getI(type,LHIType_size)=newSize>MAXNUMLOCS?MAXNUMLOCS:newSize; + // Increment type using new size + inc(type); // Assign current index getC(type,getI(type))=newLoc; }