Skip to content
Snippets Groups Projects
Commit ea30847d authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

corr bug discovered by Sebastian

parent 646bca49
No related branches found
No related tags found
No related merge requests found
......@@ -11,3 +11,4 @@ CHECK - calc mode: do not exit on error
- curve: restricted fit range
- save session ? save inputs for replay !
- convolution with fits ? splines ?
- gd: commandos -> gnuplot (für Fanni)
......@@ -271,8 +271,8 @@ int CList::ParseListvalue( string inp, int which )
char dummy;
if (sscanf(inp.c_str(), "%d%c", &val, &dummy)!=1 || val<0)
throw "invalid list value [" + inp + "]";
if ( limgiven && (val<inf || val>sup) )
if ( limgiven && (val<inf || val>sup || sup==(uint)(-1)) )
throw "list value [" + inp + "] out of bounds ("
+ strg(inf) + "," + strg(sup) + ")";
+ strg(inf) + "," + strg((int)sup) + ")";
return val;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment