/[ascend]/trunk/base/generic/solver/slv_stdcalls.c
ViewVC logotype

Diff of /trunk/base/generic/solver/slv_stdcalls.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1270 by johnpye, Sun Jan 28 01:49:38 2007 UTC revision 1271 by johnpye, Sun Feb 4 02:00:01 2007 UTC
# Line 302  int slv_check_bounds(const slv_system_t Line 302  int slv_check_bounds(const slv_system_t
302    len = slv_get_num_solvers_vars(sys);    len = slv_get_num_solvers_vars(sys);
303    if(hi < 0)hi+= len; /* so you can use -1 to mean 'the last' */    if(hi < 0)hi+= len; /* so you can use -1 to mean 'the last' */
304    if(lo < 0)lo+= len;    if(lo < 0)lo+= len;
305    if (lo > len || hi > len || lo < 0 || hi < 0 || lo > hi) {    if(lo > len || hi > len || lo < 0 || hi < 0 || lo > hi){
306      ERROR_REPORTER_HERE(ASC_PROG_ERR,"slv_check_bounds miscalled");      ERROR_REPORTER_HERE(ASC_PROG_ERR,"slv_check_bounds miscalled");
307      return -1;      return -1;
308    }    }

Legend:
Removed from v.1270  
changed lines
  Added in v.1271

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22