| author | |
| committer | |
| log | 5703ab1d0c68394f346673dc715c05813a6c4df1 |
| tree | 788f4fae772f0241d8d3e42d21da3b621ec8e6b0 |
| parent | a824a8c68783dbdb22cc51d0edad950ad8d8ed9d |
previously:
```
...\lib\zig\std\ascii.zig:203:20: error: unable to perform binary not operation on type 'comptime_int'
return c | ~0b00100000;
^
```1 files changed, 2 insertions(+), 2 deletions(-)
std/ascii.zig+2-2| ... | ... | @@ -200,7 +200,7 @@ pub fn isBlank(c: u8) bool { |
| 200 | 200 | |
| 201 | 201 | pub fn toUpper(c: u8) u8 { |
| 202 | 202 | if (isLower(c)) { |
| 203 | return c | ~0b00100000; | |
| 203 | return c & 0b11011111; | |
| 204 | 204 | } else { |
| 205 | 205 | return c; |
| 206 | 206 | } |
| ... | ... | @@ -208,7 +208,7 @@ pub fn toUpper(c: u8) u8 { |
| 208 | 208 | |
| 209 | 209 | pub fn toLower(c: u8) u8 { |
| 210 | 210 | if (isUpper(c)) { |
| 211 | return c & 0b00100000; | |
| 211 | return c | 0b00100000; | |
| 212 | 212 | } else { |
| 213 | 213 | return c; |
| 214 | 214 | } |