Changeset 316 for cpp/frams/param/param.cpp
 Timestamp:
 01/27/15 23:13:10 (9 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

cpp/frams/param/param.cpp
r314 r316 497 497 case 'o': ret.setObject(getObject(i)); break; 498 498 case 'x': ret = getExtValue(i); break; 499 default: FMprintf("ParamInterface", "get", FMLV_ERROR, "'%s.%s' is not mnfield", getName(), id(i));499 default: FMprintf("ParamInterface", "get", FMLV_ERROR, "'%s.%s' is not a field", getName(), id(i)); 500 500 } 501 501 } … … 783 783 while (*t) if (*t == ' ') break; else t++; 784 784 if (sscanf(t, PA_INT_SCANF " " PA_INT_SCANF, &mn, &mx) == 2) 785 if (mn <= mx) // if max<min then the min/max constraint check is not supported785 if (mn <= mx) // else if mn>mx then the min/max constraint makes no sense and there is no checking 786 786 { 787 787 if (x < mn) { x = mn; result = PSET_HITMIN; } … … 819 819 while (*t) if (*t == ' ') break; else t++; 820 820 if (sscanf(t, "%lg %lg", &mn, &mx) == 2) 821 if (mn <= mx) // if max<min then the min/max constraint check is not supported821 if (mn <= mx) // else if mn>mx then the min/max constraint makes no sense and there is no checking 822 822 { 823 823 if (x < mn) { x = mn; result = PSET_HITMIN; }
Note: See TracChangeset
for help on using the changeset viewer.