Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /inst/bi2de.m [786917] .. [d6dad2] Maximize Restore

  Switch to side-by-side view

--- a/inst/bi2de.m
+++ b/inst/bi2de.m
@@ -29,7 +29,7 @@
 ##
 ## The variable @var{f} defines whether the first or last element of @var{b}
 ## is considered to be the most-significant. Valid values of @var{f} are
-## 'right-msb' or 'left-msb'. By default @var{f} is 'right-msb'.
+## "right-msb" or "left-msb". By default @var{f} is "right-msb".
 ##
 ## @seealso{de2bi}
 ## @end deftypefn
@@ -39,13 +39,13 @@
   switch (nargin)
     case 1
       p = 2;
-      f = 'right-msb';
+      f = "right-msb";
     case 2
       if (ischar (p))
         f = p;
         p = 2;
       else
-        f = 'right-msb';
+        f = "right-msb";
       endif
     case 3
       if (ischar (p))
@@ -61,9 +61,9 @@
     error ("bi2de: d must only contain integers in the range [0, p-1]");
   endif
 
-  if (strcmp (f, 'left-msb'))
+  if (strcmp (f, "left-msb"))
     b = b(:,size (b, 2):-1:1);
-  elseif (!strcmp (f, 'right-msb'))
+  elseif (!strcmp (f, "right-msb"))
     error ("bi2de: unrecognized flag");
   endif