fix bug of not flipping bits in binary operands

This commit is contained in:
boryslevytskyi
2017-05-27 14:06:54 +03:00
parent 43f897ae16
commit dc21250443
2 changed files with 4 additions and 3 deletions

View File

@@ -27,7 +27,9 @@ export default class Operand {
getOtherKind(kind) {
switch(kind || this.kind) {
case 'dec': return 'hex';
case 'dec':
case 'bin':
return 'hex';
case 'hex': return 'dec';
default : throw new Error(kind + " kind doesn't have opposite kind")
}