# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1318631413 18000 # Node ID 6f779cc391fb01ee2dd8f8a630b6dc6450a50761 # Parent 22ce748da25f877462253d2fe2fa6944dd607e1c More 64bit integer type fixes for bsxfun-defs.cc diff -r 22ce748da25f -r 6f779cc391fb liboctave/bsxfun-defs.cc --- a/liboctave/bsxfun-defs.cc Fri Oct 14 23:19:06 2011 +0100 +++ b/liboctave/bsxfun-defs.cc Fri Oct 14 17:30:13 2011 -0500 @@ -69,8 +69,7 @@ R *rvec = retval.fortran_vec (); // Fold the common leading dimensions. - int start; - octave_idx_type ldr = 1; + octave_idx_type start, ldr = 1; for (start = 0; start < nd; start++) { if (dvx(start) != dvy(start)) diff -r 22ce748da25f -r 6f779cc391fb scripts/image/imshow.m --- a/scripts/image/imshow.m Fri Oct 14 23:19:06 2011 +0100 +++ b/scripts/image/imshow.m Fri Oct 14 17:30:13 2011 -0500 @@ -115,6 +115,12 @@ endif endwhile + ## Check for complex images. + if (iscomplex (im)) + warning ("imshow: only showing real part of complex image"); + im = real (im); + endif + ## Set default display range if display_range not set yet. if (isempty (display_range)) display_range = [min(im(:)), max(im(:))]; @@ -130,12 +136,6 @@ endswitch endif - ## Check for complex images. - if (iscomplex (im)) - warning ("imshow: only showing real part of complex image"); - im = real (im); - endif - nans = isnan (im(:)); if (any (nans)) warning ("Octave:imshow-NaN",