diff liboctave/Sparse-op-defs.h @ 6482:7e958a1532c6

[project @ 2007-04-04 02:37:07 by jwe]
author jwe
date Wed, 04 Apr 2007 02:37:07 +0000
parents 8e0f1eda266b
children 0ce71beb1cf3
line wrap: on
line diff
--- a/liboctave/Sparse-op-defs.h	Tue Apr 03 19:39:12 2007 +0000
+++ b/liboctave/Sparse-op-defs.h	Wed Apr 04 02:37:07 2007 +0000
@@ -1461,10 +1461,12 @@
                 { \
                   t += data(j); \
                   if (t != ELT_TYPE ()) \
-                    if (j == cidx(i+1) - 1) \
-		      nel += nr - ridx(j); \
-                    else \
-		      nel += ridx(j+1) - ridx(j); \
+		    { \
+                      if (j == cidx(i+1) - 1) \
+			nel += nr - ridx(j);  \
+		      else \
+			nel += ridx(j+1) - ridx(j); \
+		    } \
                 } \
 	    } \
 	  retval = RET_TYPE (nr, nc, nel); \