(other IntValue)
| 216 | } |
| 217 | |
| 218 | func (self IntValue) Or(other IntValue) (IntValue, error) { |
| 219 | return self.intOp(other, func(a, b int64) (int64, bool) { |
| 220 | return a | b, true |
| 221 | }, func(a, b *big.Int) (IntValue, error) { |
| 222 | return IntValFromBigInt(new(big.Int).Or(a, b)) |
| 223 | }) |
| 224 | } |
| 225 | |
| 226 | func (self IntValue) Cmp(other IntValue) int { |
| 227 | if self.isbig == false && other.isbig == false { |