lib,wcc,w6a,w6l: char-literals for remaining source magic decimals (Wave-1)

This commit is contained in:
2026-06-02 21:02:26 +09:00
parent 2131ae0dee
commit 688275bfd6
17 changed files with 86 additions and 86 deletions

View File

@@ -7,7 +7,7 @@ package path;
import strings;
def SEP: u8 = 47u8; // '/'
def SEP: u8 = '/';
// abs — `p` is an absolute path (starts with '/').
export fn abs(p: str) bool = {
@@ -75,7 +75,7 @@ export fn extension(p: str) str = {
let b: str = basename(p);
let i: i32 = b.len - 1;
for (i > 0) {
if (b[i] == 46u8) { // '.'
if (b[i] == '.') {
let r: str;
r.ptr = b.ptr + (i: u64);
r.len = b.len - i;