aboutsummaryrefslogtreecommitdiff
path: root/bindgen
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2025-01-18 15:36:36 +0100
committerAndre Weissflog <floooh@gmail.com>2025-01-18 15:36:36 +0100
commit827994ac6483887791cd6d6f3d6cbc5190c10773 (patch)
tree598b47adcc560d7a4d252b1699e626152c98a6cc /bindgen
parent1693ad0bb2dc7cc7fa4fc146fcab7fe0d389101a (diff)
gen_zig.py: fix naming convention change in 0.14.0-dev
Diffstat (limited to 'bindgen')
-rw-r--r--bindgen/gen_zig.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bindgen/gen_zig.py b/bindgen/gen_zig.py
index f90e53ec..642716ec 100644
--- a/bindgen/gen_zig.py
+++ b/bindgen/gen_zig.py
@@ -506,8 +506,8 @@ def gen_helpers(inp):
l(' switch (type_info) {')
l(' .pointer => {')
l(' switch (type_info.pointer.size) {')
- l(' .One => return .{ .ptr = val, .size = @sizeOf(type_info.pointer.child) },')
- l(' .Slice => return .{ .ptr = val.ptr, .size = @sizeOf(type_info.pointer.child) * val.len },')
+ l(' .one => return .{ .ptr = val, .size = @sizeOf(type_info.pointer.child) },')
+ l(' .slice => return .{ .ptr = val.ptr, .size = @sizeOf(type_info.pointer.child) * val.len },')
l(' else => @compileError("FIXME: Pointer type!"),')
l(' }')
l(' },')