# HG changeset patch # User jwe # Date 949040647 0 # Node ID 8a72d9e400da71c092cf7bac5344a3d850273062 # Parent 9493fe321888ea995e1d3b930460f88697f7e0f3 [project @ 2000-01-28 06:24:06 by jwe] diff --git a/liboctave/DASSL.cc b/liboctave/DASSL.cc --- a/liboctave/DASSL.cc +++ b/liboctave/DASSL.cc @@ -397,23 +397,23 @@ double next_out; while (i_out < n_out) { - int do_restart = 0; + bool do_restart = false; next_out = tout.elem (i_out); if (i_crit < n_crit) next_crit = tcrit.elem (i_crit); - int save_output; + bool save_output; double t_out; if (next_crit == next_out) { set_stop_time (next_crit); t_out = next_out; - save_output = 1; + save_output = true; i_out++; i_crit++; - do_restart = 1; + do_restart = true; } else if (next_crit < next_out) { @@ -421,15 +421,15 @@ { set_stop_time (next_crit); t_out = next_crit; - save_output = 0; + save_output = false; i_crit++; - do_restart = 1; + do_restart = true; } else { clear_stop_time (); t_out = next_out; - save_output = 1; + save_output = true; i_out++; } } @@ -437,7 +437,7 @@ { set_stop_time (next_crit); t_out = next_out; - save_output = 1; + save_output = true; i_out++; } diff --git a/liboctave/DASSL.h b/liboctave/DASSL.h --- a/liboctave/DASSL.h +++ b/liboctave/DASSL.h @@ -139,7 +139,7 @@ double stop_time; int stop_time_set; - int n; + size_t n; int integration_error; int restart; int liw;