diff options
author | BurnZeZ <devnull@localhost> | 2018-12-01 18:07:40 +0000 |
---|---|---|
committer | BurnZeZ <devnull@localhost> | 2018-12-01 18:07:40 +0000 |
commit | 2b1454e81c8ee4572408096f4593678d184da130 (patch) | |
tree | 50944389fcffc0de28ada16f7024c262a84b33ae | |
parent | d9b9e15d6bbdae625b3613bb0a704d269cc83098 (diff) |
libdtracy: wrong operator in XORI (thanks aiju)
-rw-r--r-- | sys/src/libdtracy/prog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/libdtracy/prog.c b/sys/src/libdtracy/prog.c index d2b14c509..2c294068b 100644 --- a/sys/src/libdtracy/prog.c +++ b/sys/src/libdtracy/prog.c @@ -138,7 +138,7 @@ dteexec(DTExpr *p, ExecInfo *info, s64int *retv) case DTE_XOR: R[c] = R[a] ^ R[b]; break; case DTE_XNOR: R[c] = ~(R[a] ^ R[b]); break; case DTE_LDI: R[c] = (s64int)ins << 40 >> 54 << (ins >> 8 & 63); break; - case DTE_XORI: R[c] |= (s64int)ins << 40 >> 54 << (ins >> 8 & 63); break; + case DTE_XORI: R[c] ^= (s64int)ins << 40 >> 54 << (ins >> 8 & 63); break; case DTE_LSL: if((u64int)R[b] >= 64) R[c] = 0; |