eef570b
#! /bin/sh /usr/share/dpatch/dpatch-run
eef570b
## 121-fix-mathlib-test-case-c209m.dpatch by  <kmccarty@debian.org>
eef570b
##
eef570b
## All lines beginning with `## DP:' are a description of the patch.
eef570b
## DP: Fix off-by-one bug in test case c209m.  Courtesy Harald Vogt.
eef570b
eef570b
@DPATCH@
eef570b
diff -urNad cernlib-2005.dfsg~/src/mathlib/gen/tests/c209m.F cernlib-2005.dfsg/src/mathlib/gen/tests/c209m.F
eef570b
--- cernlib-2005.dfsg~/src/mathlib/gen/tests/c209m.F	1996-04-01 10:01:13.000000000 -0500
eef570b
+++ cernlib-2005.dfsg/src/mathlib/gen/tests/c209m.F	2006-09-06 19:05:30.359047318 -0400
eef570b
@@ -16,7 +16,7 @@
eef570b
 #include "gen/defc64.inc"
eef570b
      +   TEST(NT,NT),A(0:NT),ROOT(NT),SUM
eef570b
 C     R is the estimated radius of a circle centered at a root
eef570b
-      DIMENSION    R(NT),RES(NT)
eef570b
+      DIMENSION    R(NT+1),RES(NT)
eef570b
       LOGICAL   INR2(NT,NT)
eef570b
       PARAMETER (MAXFUN=50000)
eef570b
       PARAMETER (TSTERR=5D-8)