authorgravatar for avalyn0x45@noreply.codeberg.orgavalyn0x45 <avalyn0x45@noreply.codeberg.org> 2026-07-21 19:54:03+02:00
committergravatar for alichraghi@noreply.codeberg.orgAli Cheraghi <alichraghi@noreply.codeberg.org> 2026-07-21 19:54:03+02:00
log5fe9620b779d27fad84c3f3c11d038aa68faba2c
tree360796bc58859024a4a30b278a88ce0a78ada4ba
parent7faf6be3535195b96b69fb9b8d12f16015d7ec36

Remove erroneous quote in std.spirv.specConst inline asm (#36230)

This seems to be an accidental inclusion from a copy+paste and stops function from being used with ints. Reviewed-on: https://codeberg.org/ziglang/zig/pulls/36230 Reviewed-by: Ali Cheraghi <alichraghi@noreply.codeberg.org>

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/spirv.zig+1-1
...@@ -97,7 +97,7 @@ pub fn specConst(T: type, comptime default_value: T, comptime spec_id: u32) T {...@@ -97,7 +97,7 @@ pub fn specConst(T: type, comptime default_value: T, comptime spec_id: u32) T {
97 },97 },
98 .int, .float => return asm (98 .int, .float => return asm (
99 \\%ret = OpSpecConstant %ty $default_value99 \\%ret = OpSpecConstant %ty $default_value
100 \\ OpDecorate %ret SpecId $spec_id"100 \\ OpDecorate %ret SpecId $spec_id
101 : [ret] "" (-> T),101 : [ret] "" (-> T),
102 : [ty] "t" (T),102 : [ty] "t" (T),
103 [default_value] "c" (default_value),103 [default_value] "c" (default_value),