Mercurial > hg > octave-nkf
diff scripts/miscellaneous/swapbytes.m @ 10549:95c3e38098bf
Untabify .m scripts
author | Rik <code@nomad.inbox5.com> |
---|---|
date | Fri, 23 Apr 2010 11:28:50 -0700 |
parents | 16f53d29049f |
children | 693e22af08ae |
line wrap: on
line diff
--- a/scripts/miscellaneous/swapbytes.m +++ b/scripts/miscellaneous/swapbytes.m @@ -45,12 +45,12 @@ elseif (strcmp (clx, "int32") || strcmp (clx, "uint32")) nb = 4; elseif (strcmp (clx, "int64") || strcmp (clx, "uint64") || - strcmp (clx, "double")) + strcmp (clx, "double")) nb = 8; else error ("swapbytes: invalid class of object"); endif y = reshape (typecast (reshape (typecast (x(:), "uint8"), nb, numel (x)) - ([nb : -1 : 1], :) (:), clx), size(x)); + ([nb : -1 : 1], :) (:), clx), size(x)); endif endfunction