* Bug 16522 fixed: bitget(x,pos) and bitset(..) with pos as encoded integer
[scilab.git] / scilab / modules / elementary_functions / macros / bitset.sci
index b47408c..615554d 100644 (file)
@@ -58,7 +58,9 @@ function y = bitset(x, pos, v)
             error(msprintf(msg, fname, 2, posmax))
         end
     end
-    // Check consistency between x and pos sizes
+    pos = double(pos)
+
+   // Check consistency between x and pos sizes
     sx = size(x)
     ndx = ndims(x)
     sp = size(pos)