Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
devlights committed Oct 30, 2024
1 parent 4d8b26a commit 2c95941
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/singleapp/bitvector/bitvector.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ type (
bits []uint32
size int
}
kind int
opcode int
)

const (
AND kind = iota
OR kind = iota
XOR kind = iota
AND opcode = iota
OR opcode = iota
XOR opcode = iota
)

// NewBitVector は、指定されたサイズのビットベクタを作成します.
Expand Down Expand Up @@ -77,7 +77,7 @@ func (me *BitVector) Xor(other *BitVector) (*BitVector, error) {
return me.calc(other, XOR)
}

func (me *BitVector) calc(other *BitVector, op kind) (*BitVector, error) {
func (me *BitVector) calc(other *BitVector, op opcode) (*BitVector, error) {
if me.size != other.size {
return nil, fmt.Errorf("size mismatch: %d != %d", me.size, other.size)
}
Expand Down

0 comments on commit 2c95941

Please sign in to comment.