changeset 16036:dd583c258cf9

Fix trivial typo in run-octave.in comment
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Mon, 11 Feb 2013 11:30:14 -0500
parents 999f8257313b
children 095d8d22c87d 5919794d640a
files run-octave.in scripts/sparse/sprandsym.m
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/run-octave.in	Sat Feb 09 16:13:55 2013 -0500
+++ b/run-octave.in	Mon Feb 11 11:30:14 2013 -0500
@@ -63,7 +63,7 @@
     shift
   elif [ "x$1" = "x-gud2" ]; then
     ## The latest version of gud needs -i=mi. There isn't a good way to check
-    ## this at configure time, so we just add a gdb2 flag
+    ## this at configure time, so we just add a gud2 flag
     driver="gdb -i=mi --args"
     shift
   elif [ "x$1" = "x-valgrind" ]; then
--- a/scripts/sparse/sprandsym.m	Sat Feb 09 16:13:55 2013 -0500
+++ b/scripts/sparse/sprandsym.m	Mon Feb 11 11:30:14 2013 -0500
@@ -127,6 +127,12 @@
   ## Compute the stuff described above
   a = n*(n - 1)/2;
   d = [mod(k,2):2:min(n,k)-2];
+
+  ## Since we 
+  if (isempty (d))
+    keyboard
+  endif
+
   m = (k - d)/2;
   q = (n - d).*(n - d - 1).*m ./ (d + 2)./(d + 1)./(a - m + 1);