(value, bits ref.Val)
| 823 | } |
| 824 | |
| 825 | func bitShiftRightUintInt(value, bits ref.Val) ref.Val { |
| 826 | v := value.(types.Uint) |
| 827 | bs := bits.(types.Int) |
| 828 | if bs < types.IntZero { |
| 829 | return types.NewErr("math.bitShiftRight() negative offset: %d", bs) |
| 830 | } |
| 831 | return v >> bs |
| 832 | } |
| 833 | |
| 834 | func minPair(first, second ref.Val) ref.Val { |
| 835 | cmp, ok := first.(traits.Comparer) |