diff --git a/TODO b/TODO index 30694c6440ee6b66b901a9343bff19a84aab1b66..490b437073c9c1ee4c5278ec5a456905fa325984 100644 --- a/TODO +++ b/TODO @@ -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) diff --git a/pub/src/list.cpp b/pub/src/list.cpp index a3bd5d278d4a06cf633bdcde7afe47219d4cd340..6ee6ca43ede60b3abf1e53fb626838e1cc427eb0 100644 --- a/pub/src/list.cpp +++ b/pub/src/list.cpp @@ -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; }