mirror of
https://github.com/BorysLevytskyi/BitwiseCmd.git
synced 2026-01-20 10:52:43 +01:00
fix bug of not flipping bits in binary operands
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user