diff options
| author | Wooster <wooster0@proton.me> | 2024-07-16 03:18:38 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-15 18:18:38 +0000 |
| commit | 888708ec8af9b60681ef14fb0a5c265f2a30b41f (patch) | |
| tree | 95da742d1d0082ae0150ea109f57e5ce2eebddb8 /src/Value.zig | |
| parent | 89942ebd03b2943cbbe84b575a024e156ca5bf52 (diff) | |
| download | zig-888708ec8af9b60681ef14fb0a5c265f2a30b41f.tar.gz zig-888708ec8af9b60681ef14fb0a5c265f2a30b41f.zip | |
Sema: support pointer subtraction
Diffstat (limited to 'src/Value.zig')
| -rw-r--r-- | src/Value.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Value.zig b/src/Value.zig index 69b09a203e..66253bc29c 100644 --- a/src/Value.zig +++ b/src/Value.zig @@ -3752,7 +3752,7 @@ pub fn ptrField(parent_ptr: Value, field_idx: u32, pt: Zcu.PerThread) !Value { const parent_ptr_info = parent_ptr_ty.ptrInfo(zcu); assert(parent_ptr_info.flags.size == .One); - // Exiting this `switch` indicates that the `field` pointer repsentation should be used. + // Exiting this `switch` indicates that the `field` pointer representation should be used. // `field_align` may be `.none` to represent the natural alignment of `field_ty`, but is not necessarily. const field_ty: Type, const field_align: InternPool.Alignment = switch (aggregate_ty.zigTypeTag(zcu)) { .Struct => field: { |
