mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-26 09:01:35 +01:00
Add a ~+ operator.
This commit is contained in:
1 parent
e7d01e7b2a
commit
6492c52156
8 files changed
+154
-99
No files matched your search
@@ -997,6 +997,14 @@ func (q *checker) bcheckExprBinaryOp1(op t.Key, lhs *a.Expr, lMin *big.Int, lMax
|
||||
|
||||
case t.KeyXBinaryAs:
|
||||
// Unreachable, as this is checked by the caller.
|
||||
|
||||
case t.KeyXBinaryTildePlus:
|
||||
typ := lhs.MType()
|
||||
if typ.IsIdeal() {
|
||||
typ = rhs.MType()
|
||||
}
|
||||
b := numTypeBounds[typ.Name().Key()]
|
||||
return b[0], b[1], nil
|
||||
}
|
||||
return nil, nil, fmt.Errorf("check: unrecognized token.Key (0x%X) for bcheckExprBinaryOp", op)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user