# HG changeset patch # User jwe # Date 823434923 0 # Node ID 34c0a016c6f0f8babaacbc6793beac2a047a8cb4 # Parent 51fd6b03c3bb6a4443d69b16057dc3b4072571a5 [project @ 1996-02-04 11:55:23 by jwe] diff --git a/liboctave/CollocWt.cc b/liboctave/CollocWt.cc --- a/liboctave/CollocWt.cc +++ b/liboctave/CollocWt.cc @@ -94,7 +94,8 @@ return; } - nt = n + inc_left + inc_right; + int nt = n + inc_left + inc_right; + if (nt < 0) { error ("total number of collocation points less than zero");