Ignore:
Timestamp:
11/25/15 15:49:41 (8 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: Yes/No?

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No?

Module(s): Module Names change impacts.

Description: Describe your changes here...


Bug fix on index range check. It seems that current code allows index 4. But I think valid index range should be 0 <= index <= 4.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STPolStokes.cpp

    r1007 r3080  
    3535Vector<Float> asap::STPolStokes::getLinPol( uInt index )
    3636{
    37   if ( index < 0 || index >4 ) throw(AipsError("LinPol index out of range"));
     37//  if ( index < 0 || index >4 ) throw(AipsError("LinPol index out of range"));
     38  if ( index >= 4 ) throw(AipsError("LinPol index out of range"));
    3839  Vector<Float> out;
    3940  if ( nspec() == 4) {
Note: See TracChangeset for help on using the changeset viewer.