Undo renaming of BitVector's length to width
[Mograsim.git] / net.mograsim.machine / src / net / mograsim / machine / mi / parameters / MnemonicFamily.java
index aa07f80..3724a42 100644 (file)
@@ -19,9 +19,9 @@ public class MnemonicFamily implements ParameterClassification
                        vectorLenght = 0;
                else
                {
-                       vectorLenght = values[0].getValue().width();
+                       vectorLenght = values[0].getValue().length();
                        for(int i = 1; i < values.length; i++)
-                               if(values[i].getValue().width() != vectorLenght)
+                               if(values[i].getValue().length() != vectorLenght)
                                        throw new IllegalArgumentException("MnemonicFamily is not of uniform vector length!");
                }
                byText = Arrays.stream(values).collect(Collectors.toMap(m -> m.getText(), m -> m));