mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
more intuitive left shift and right shift operators
Before: * << is left shift, not allowed to shift 1 bits out * <<% is left shift, allowed to shift 1 bits out * >> is right shift, allowed to shift 1 bits out After: * << is left shift, allowed to shift 1 bits out * >> is right shift, allowed to shift 1 bits out * @shlExact is left shift, not allowed to shift 1 bits out * @shrExact is right shift, not allowed to shift 1 bits out Closes #413
This commit is contained in:
1 parent
54675b060a
commit
35d3444e27
28 files changed
+274
-128
No files matched your search
@@ -25,6 +25,7 @@ const char *err_str(int err) {
|
||||
case ErrorUnexpected: return "unexpected error";
|
||||
case ErrorExactDivRemainder: return "exact division had a remainder";
|
||||
case ErrorNegativeDenominator: return "negative denominator";
|
||||
case ErrorShiftedOutOneBits: return "exact shift shifted out one bits";
|
||||
}
|
||||
return "(invalid error)";
|
||||
}
|
||||
Reference in new issue
Block a user