diff options
| author | Tim Foley <tfoley@nvidia.com> | 2017-06-21 11:23:04 -0700 |
|---|---|---|
| committer | Tim Foley <tfoley@nvidia.com> | 2017-06-21 11:59:52 -0700 |
| commit | c92d06cc87370f7db478bdbc2d77b080f013632e (patch) | |
| tree | 380bdcc15aa9acd1837559a0ab92963d54721fed /source | |
| parent | bdfe06d2c1fd4a950dd8dbcb235bcf3a719632b0 (diff) | |
Bug fix: correct attribute on `operator~`
The operator was being declared as `IntrinsicOp::Not` when it should be `IntrinsicOp::BitNot`
Diffstat (limited to 'source')
| -rw-r--r-- | source/slang/slang-stdlib.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-stdlib.cpp b/source/slang/slang-stdlib.cpp index 3a3f6d13f..e44b7131b 100644 --- a/source/slang/slang-stdlib.cpp +++ b/source/slang/slang-stdlib.cpp @@ -1022,7 +1022,7 @@ namespace Slang OpInfo unaryOps[] = { { IntrinsicOp::Neg, "-", ARITHMETIC_MASK }, { IntrinsicOp::Not, "!", ANY_MASK }, - { IntrinsicOp::Not, "~", INT_MASK }, + { IntrinsicOp::BitNot, "~", INT_MASK }, { IntrinsicOp::PreInc, "++", ARITHMETIC_MASK | ASSIGNMENT }, { IntrinsicOp::PreDec, "--", ARITHMETIC_MASK | ASSIGNMENT }, { IntrinsicOp::PostInc, "++", ARITHMETIC_MASK | ASSIGNMENT | POSTFIX }, |
