Hi! > > + char *endptr; > > + > > + rval = strtol(str, &endptr, 10); > > + if ((errno == ERANGE && (rval == LONG_MAX || rval == LONG_MIN)) > > + || (errno != 0 && rval == 0)) > > + tst_brkm(TBROK|TERRNO, cleanup_fn, "strtol failed at %s:%d", > > + file, lineno); > > + if (rval >= max || rval <= min) > > > I'm not sure with this check. ;)
I would expect that the converted value could reach both max and min. -- Cyril Hrubis [email protected] ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
